diff --git a/pkg/serverconfigs/http_remote_addr_config.go b/pkg/serverconfigs/http_remote_addr_config.go index 04aaa89..ce02001 100644 --- a/pkg/serverconfigs/http_remote_addr_config.go +++ b/pkg/serverconfigs/http_remote_addr_config.go @@ -19,6 +19,7 @@ type HTTPRemoteAddrConfig struct { // Init 初始化 func (this *HTTPRemoteAddrConfig) Init() error { + this.Value = strings.TrimSpace(this.Value) if len(this.Value) == 0 { this.isEmpty = true } else if regexp.MustCompile(`\s+`).ReplaceAllString(this.Value, "") == "${remoteAddr}" {