Update subnet-up.tmpl

This commit is contained in:
Manevolent 2023-04-12 22:36:15 -06:00 committed by GitHub
parent e7df65037b
commit 5e833c5471
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,6 @@
#!/bin/ash
echo "Route up: \$SUBNET weight \$WEIGHT via \$NODE (\$REMOTEADDRESS:\$REMOTEPORT)"
nonMACChars=`echo \$SUBNET | tr -d "[:digit:]" | tr -d [:ABCDEF]`
nonMACChars=`echo \$SUBNET | tr -d "[:digit:]" | tr -d [:ABCDEFabcdef]`
macFile="/tmp/tinc_peer_mac_\$NODE"
if [ -z "\$nonMACChars" ]; then
# This subnet is a MAC