Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi Wang
I have already implemented the SPA feature for tcp that the issue i created : https://github.com/wangyu-/udp2raw/issues/506
It just add a new tcp option(233) with a check sum(timestamp + key_string) in SYN packet.
And the server will check the 233 tcp option's check sum.
when server start with --tcp-spa
./udp2raw -s -l 192.168.56.12:61103 -r 202.104.30.208:61103 -a --tcp-spa
client with --tcp-spa will be accept
./udp2raw -c -l 192.168.56.10:61103 -r 192.168.56.12:61103 -a --tcp-spa
client without --tcp-spa will be drop
./udp2raw -c -l 192.168.56.10:61103 -r 192.168.56.12:61103 -a
when server start without --tcp-spa
client with or without --tcp-spa will both be accept