fix socks client check port range
This commit is contained in:
@ -1,4 +1,7 @@
|
|||||||
proxy更新日志
|
proxy更新日志
|
||||||
|
v5.3
|
||||||
|
1.优化了socks_client握手端口判断,避免了sstap测试UDP失败的问题..
|
||||||
|
|
||||||
v5.2
|
v5.2
|
||||||
1.修复了HTTP(S)\SPS反向代理无法正常工作的问题.
|
1.修复了HTTP(S)\SPS反向代理无法正常工作的问题.
|
||||||
2.优化了智能判断,减少不必要的DNS解析.
|
2.优化了智能判断,减少不必要的DNS解析.
|
||||||
|
|||||||
@ -48,7 +48,7 @@ Proxy是golang实现的高性能http,https,websocket,tcp,udp,socks5代理服务
|
|||||||
- ...
|
- ...
|
||||||
|
|
||||||
|
|
||||||
本页是v5.2手册,其他版本手册请点击[这里](docs/old-release.md)查看.
|
本页是v5.3手册,其他版本手册请点击[这里](docs/old-release.md)查看.
|
||||||
|
|
||||||
|
|
||||||
### 怎么找到组织?
|
### 怎么找到组织?
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
# Old Versions of Proxy
|
# Old Versions of Proxy
|
||||||
|
|
||||||
|
- [v5.2手册](https://github.com/snail007/goproxy/tree/v5.2)
|
||||||
- [v5.1手册](https://github.com/snail007/goproxy/tree/v5.1)
|
- [v5.1手册](https://github.com/snail007/goproxy/tree/v5.1)
|
||||||
- [v5.0手册](https://github.com/snail007/goproxy/tree/v5.0)
|
- [v5.0手册](https://github.com/snail007/goproxy/tree/v5.0)
|
||||||
- [v4.9手册](https://github.com/snail007/goproxy/tree/v4.9)
|
- [v4.9手册](https://github.com/snail007/goproxy/tree/v4.9)
|
||||||
|
|||||||
@ -5,7 +5,7 @@ if [ -e /tmp/proxy ]; then
|
|||||||
fi
|
fi
|
||||||
mkdir /tmp/proxy
|
mkdir /tmp/proxy
|
||||||
cd /tmp/proxy
|
cd /tmp/proxy
|
||||||
wget https://github.com/snail007/goproxy/releases/download/v5.2/proxy-linux-amd64.tar.gz
|
wget https://github.com/snail007/goproxy/releases/download/v5.3/proxy-linux-amd64.tar.gz
|
||||||
|
|
||||||
# #install proxy
|
# #install proxy
|
||||||
tar zxvf proxy-linux-amd64.tar.gz
|
tar zxvf proxy-linux-amd64.tar.gz
|
||||||
|
|||||||
2
main.go
2
main.go
@ -9,7 +9,7 @@ import (
|
|||||||
"github.com/snail007/goproxy/services"
|
"github.com/snail007/goproxy/services"
|
||||||
)
|
)
|
||||||
|
|
||||||
const APP_VERSION = "5.2"
|
const APP_VERSION = "5.3"
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
err := initConfig()
|
err := initConfig()
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
VER="5.2"
|
VER="5.3"
|
||||||
RELEASE="release-${VER}"
|
RELEASE="release-${VER}"
|
||||||
rm -rf .cert
|
rm -rf .cert
|
||||||
mkdir .cert
|
mkdir .cert
|
||||||
|
|||||||
@ -72,7 +72,7 @@ func (s *ClientConn) Handshake() error {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return errors.New("proxy: failed to parse port number: " + portStr)
|
return errors.New("proxy: failed to parse port number: " + portStr)
|
||||||
}
|
}
|
||||||
if port < 1 || port > 0xffff {
|
if s.network == "tcp" && (port < 1 || port > 0xffff) {
|
||||||
return errors.New("proxy: port number out of range: " + portStr)
|
return errors.New("proxy: port number out of range: " + portStr)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user