File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ func (p *Proxy) CheckProxyHTTP(proxy string) {
75
75
var proxyPort = * port
76
76
s := strings .Split (proxy , ":" )
77
77
if len (s ) > 1 {
78
- proxyPort , err = strconv .Atoi (s [1 ])
78
+ proxyPort , err = strconv .Atoi (strings . TrimSpace ( s [1 ]) )
79
79
if err != nil {
80
80
log .Println (err )
81
81
return
@@ -149,7 +149,7 @@ func (p *Proxy) CheckProxySocks4(proxy string) {
149
149
var proxyPort = * port
150
150
s := strings .Split (proxy , ":" )
151
151
if len (s ) > 1 {
152
- proxyPort , err = strconv .Atoi (s [1 ])
152
+ proxyPort , err = strconv .Atoi (strings . TrimSpace ( s [1 ]) )
153
153
if err != nil {
154
154
log .Println (err )
155
155
return
@@ -204,7 +204,7 @@ func (p *Proxy) CheckProxySocks5(proxy string) {
204
204
var proxyPort = * port
205
205
s := strings .Split (proxy , ":" )
206
206
if len (s ) > 1 {
207
- proxyPort , err = strconv .Atoi (s [1 ])
207
+ proxyPort , err = strconv .Atoi (strings . TrimSpace ( s [1 ]) )
208
208
if err != nil {
209
209
log .Println (err )
210
210
return
You can’t perform that action at this time.
0 commit comments