mirror of
https://github.com/yusing/godoxy.git
synced 2026-03-30 13:51:52 +02:00
smarter scheme and port detection
This commit is contained in:
@@ -37,7 +37,7 @@ func ValidateStreamPort(p string) (StreamPort, E.NestedError) {
|
||||
} else if err != nil {
|
||||
proxyPort, err = parseNameToPort(split[1])
|
||||
if err != nil {
|
||||
return ErrStreamPort, err
|
||||
return ErrStreamPort, E.Invalid("stream port", p).With(proxyPort)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user