mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-27 02:38:33 +02:00
fixed host set to localhost even on remote docker, fixed one error in provider causing all routes not to load
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package fields
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"strings"
|
||||
|
||||
"github.com/yusing/go-proxy/common"
|
||||
@@ -15,7 +16,7 @@ type StreamPort struct {
|
||||
func ValidateStreamPort(p string) (StreamPort, E.NestedError) {
|
||||
split := strings.Split(p, ":")
|
||||
if len(split) != 2 {
|
||||
return StreamPort{}, E.Invalid("stream port", p).With("should be in 'x:y' format")
|
||||
return StreamPort{}, E.Invalid("stream port", fmt.Sprintf("%q", p)).With("should be in 'x:y' format")
|
||||
}
|
||||
|
||||
listeningPort, err := ValidatePort(split[0])
|
||||
|
||||
Reference in New Issue
Block a user