mirror of
https://github.com/SagerNet/sing-box.git
synced 2025-04-04 12:27:36 +03:00
Add auto_route and auto_detect_interface for linux
This commit is contained in:
parent
4432cc2253
commit
638f8a52d1
16 changed files with 318 additions and 20 deletions
|
@ -12,7 +12,7 @@ import (
|
|||
|
||||
func New(router adapter.Router, options option.DialerOptions) N.Dialer {
|
||||
if options.Detour == "" {
|
||||
return NewDefault(options)
|
||||
return NewDefault(router, options)
|
||||
} else {
|
||||
return NewDetour(router, options.Detour)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue