fix cmd
This commit is contained in:
parent
b2b76a10a0
commit
1b22a5db9f
@ -247,6 +247,7 @@ func buildServiceConfig(url *url.URL) (*config.ServiceConfig, error) {
|
||||
}
|
||||
}
|
||||
|
||||
// forward mode
|
||||
if remotes := strings.Trim(url.EscapedPath(), "/"); remotes != "" {
|
||||
svc.Forwarder = &config.ForwarderConfig{
|
||||
Targets: strings.Split(remotes, ","),
|
||||
@ -257,7 +258,7 @@ func buildServiceConfig(url *url.URL) (*config.ServiceConfig, error) {
|
||||
listener == "tun" || listener == "tap" {
|
||||
handler = listener
|
||||
} else {
|
||||
handler = "tcp"
|
||||
handler = "forward"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user