mirror of
https://github.com/go-gost/gost.git
synced 2026-10-08 20:15:46 +00:00
support multiple network interfaces
This commit is contained in:
@@ -102,9 +102,7 @@ func NewExchanger(addr string, opts ...Option) (Exchanger, error) {
|
||||
ex.addr = net.JoinHostPort(ex.addr, "53")
|
||||
}
|
||||
if ex.router == nil {
|
||||
ex.router = &chain.Router{
|
||||
Logger: options.logger,
|
||||
}
|
||||
ex.router = (&chain.Router{}).WithLogger(options.logger)
|
||||
}
|
||||
|
||||
switch ex.network {
|
||||
|
||||
Reference in New Issue
Block a user