n2n: v3: fixes init script (#9488)

This commit is contained in:
Suysker 2022-06-07 10:15:29 +08:00 committed by GitHub
parent 8ca1319fa3
commit ad18adbf5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,7 +41,7 @@ start_instance() {
config_get_bool enabled "$cfg" 'enabled' '0'
[ "$enabled" = "0" ] && return 1
config_get port "$cfg" 'port'
/usr/bin/supernode -l $port &
/usr/bin/supernode -p $port &
iptables -I INPUT -p udp --dport $port -j ACCEPT -m comment --comment 'n2n supernode port'
;;
route)