netxfly / xsec-proxy-scanner

xsec-proxy-scanner是一款速度超快、小巧的代理扫描器

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

build的时候提示找不到h12.me/socks

coffeehb opened this issue · comments

commented

build的时候提示找不到h12.me/socks

➜ proxy_scanner git:(master) go build proxy_scanner.go
proxy/socks.go:28:2: cannot find package "h12.me/socks" in any of:
/usr/local/go/src/h12.me/socks (from $GOROOT)
/Users/xxxx/golang/src/h12.me/socks (from $GOPATH)
对go一点也不懂,咋也不知道不敢问
➜ proxy_scanner git:(master) go get h12.me/socks
package h12.me/socks: unrecognized import path "h12.me/socks" (parse https://h12.me/socks?go-get=1: no go-import meta tags (meta tag h12.io/socks did not match import path h12.me/socks))
下载也没有,搜了一下 h12.io/socks可以安装
go get -u "h12.io/socks"
然后去vi .//proxy/socks.go
替换 "h12.me/socks" 为 "h12.io/socks"
顺利解决问题。
➜ proxy_scanner git:(master) ✗ ./proxy_scanner scan -d -t 2 -f s
[0000] INFO xsec proxy scanner: 1 proxies will be check
[0000] DEBUG xsec proxy scanner: Scanning The last batches(1)
[0000] DEBUG xsec proxy scanner: Checking proxy: SOCKS4://103.35.171.161:8080
[0000] DEBUG xsec proxy scanner: Checking proxy: SOCKS4A://103.35.171.161:8080
[0000] DEBUG xsec proxy scanner: Checking proxy: SOCKS5://103.35.171.161:8080
[