turn.yml aktualisiert
This commit is contained in:
parent
49fa20fb2a
commit
dfc9bd787b
2
turn.yml
2
turn.yml
@ -104,7 +104,7 @@
|
||||
#local_ip=$(ip route get 1 | grep " src " | head -n1 | cut -d" " -f7)
|
||||
#g_valid_ipv4 "$local_ip" || g_echo_error_exit "Invalid local_ip $local_ip"
|
||||
external_ip=$(curl -s https://checkipv4.dedyn.io)
|
||||
g_valid_ipv4 "$local_ip" || g_echo_error_exit "Invalid external_ip $external_ip"
|
||||
g_valid_ipv4 "$external_ip" || g_echo_error_exit "Invalid external_ip $external_ip"
|
||||
if ! grep -q "external-ip=$local_ip/$external_ip" turnserver.conf
|
||||
then
|
||||
sed -i '/^external-ip=.*/d' turnserver.conf
|
||||
|
Loading…
Reference in New Issue
Block a user