MartineauUK / wireguard

Manage/Install WireGuard on applicable ASUS routers
GNU General Public License v3.0
124 stars 22 forks source link

BUG - missing awk #11

Open dieskim opened 1 year ago

dieskim commented 1 year ago

https://github.com/MartineauUK/wireguard/blob/main/wg_manager.sh#L5810C13-L5810C25

SITE_ONE_LAN=$('NR==1{print $NF}' /opt/etc/wireguard.d/$WG_INTERFACE.conf)

Should read

SITE_ONE_LAN=$(awk 'NR==1{print $NF}' /opt/etc/wireguard.d/$WG_INTERFACE.conf)

dieskim commented 1 year ago

site2site add command seems like it has a few more bugs - ill try to fix them and report back