Support colorful print

This commit is contained in:
Kirigaya Kazuto 2021-07-30 19:04:34 +00:00
parent b60fdfea64
commit 0ae3396cd6

View File

@ -46,7 +46,7 @@ MTU = {}
'''.format(config["ip"], config["prikey"], config["listen"], config["mtu"])) '''.format(config["ip"], config["prikey"], config["listen"], config["mtu"]))
# Generate PostUp # Generate PostUp
f.write('''PostUp=/bin/tmux new-session -s tunnel -d 'watch -n 1 wg' f.write('''PostUp=/bin/tmux new-session -s tunnel -d 'watch -n 1 --color WG_COLOR_MODE=always wg'
PostUp=sysctl net.core.default_qdisc=fq PostUp=sysctl net.core.default_qdisc=fq
PostUp=sysctl net.ipv4.tcp_congestion_control=bbr PostUp=sysctl net.ipv4.tcp_congestion_control=bbr
''') ''')