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