This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| # you must preset following command. | |
| # sudo sysctl -w net.ipv4.tcp_fastopen=3 | |
| import sys | |
| import socket | |
| PORT = 10443 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * # Advance preparation are required. | |
| * # ipfw add divert 10000 udp from me to [nameserver_ip] via [IF] | |
| * # ipfw add divert 10000 udp from [nameserver_ip] to me via [IF] | |
| */ | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include <stdint.h> |
NewerOlder