From c2f0d609c4fe2f74aa0168354e6eae0cf179729a Mon Sep 17 00:00:00 2001 From: becivells <732903873@qq.com> Date: Fri, 10 Sep 2021 10:22:53 +0800 Subject: [PATCH] =?UTF-8?q?proxy=20host=20=E6=8A=A5=E9=94=99=E6=8F=90?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/options/validata.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/options/validata.go b/internal/options/validata.go index deb01be..926f742 100644 --- a/internal/options/validata.go +++ b/internal/options/validata.go @@ -39,7 +39,7 @@ func (options *Options) validataProxySite() { addr, port, err := utils.SplitHost(host) if err != nil { - panic(err) + log.Fatal("Proxy host: %s format error must have port eg(127.0.0.1:80,www.xxx.com:80)", addr) } if !utils.IsHost(addr) { log.Fatal("Proxy host is not ip or host please check host: %s,Addr: %s", host, addr)