Skip to content

Add support for port-range dialer, randomized remote port

Compare
Choose a tag to compare
@xtaci xtaci released this 15 Oct 05:53
· 29 commits to master since this release

Add support for port-range dialer , port-range listener, try to specify:

client: --remoteaddr IP:minport-maxport
server: --listen IP:minport-maxport

eg:
client: --remoteaddr IP:3000-4000
server: --listen 0.0.0.0:3000-4000

to test the feature. The client will switch to next randomized port in port range automatically when a connection has expired by '-autoexpire'.

$ go version
go version go1.19.2 linux/amd64

$ date
Sat Oct 15 13:49:53 CST 2022

$ ./build-release.sh
Setting GO111MODULE to on
4b482941ebde8a59e18cd161704d04f0e9814c31  kcptun-linux-amd64-20221015.tar.gz
cbda6c87606355fd6c4f3af644cad1126ca98865  kcptun-darwin-amd64-20221015.tar.gz
8d6231fff71daa818fd064ee0e594f1bdc8891d1  kcptun-windows-amd64-20221015.tar.gz
5df9f4034d1aa8883f6a34a66e8f776a7a995956  kcptun-freebsd-amd64-20221015.tar.gz
7d8287daff5011bbffc5f1c04dbe73891780b913  kcptun-linux-386-20221015.tar.gz
b7afed2eec47fbc7ac268bdb555cced38bafce8f  kcptun-windows-386-20221015.tar.gz
d8691d7e769a312e19dd573a1c87d4dcb1b0b2cb  kcptun-darwin-arm64-20221015.tar.gz
f4dd3d350430f7579ba327654effe55015db6675  kcptun-linux-arm5-20221015.tar.gz
2f699c0d934814689dcccd257f1304e4668bff1d  kcptun-linux-arm6-20221015.tar.gz
2c6f35641c8afbed4da7e37fe83f7cef2c2b0cbd  kcptun-linux-arm7-20221015.tar.gz
23dfdd553264d3b4f7ff2353fbef970759e8cdc0  kcptun-linux-arm64-20221015.tar.gz
69354b75910a7489596dce18eaab612d89d2b9bd  kcptun-linux-mipsle-20221015.tar.gz
0b1d7870baf08b3739bbf96458ed26755346a3e2  kcptun-linux-mips-20221015.tar.gz