l-n-s / wireguard-install

WireGuard VPN server installer
MIT License
656 stars 166 forks source link

wireguard-install.sh: line 183: -4: substring expression < 0 #51

Open NickTheLim opened 5 years ago

NickTheLim commented 5 years ago

wireguard-install.sh: line 183: -4: substring expression < 0

crimist commented 4 years ago

rm /etc/wireguard/wg0.conf

tczee36 commented 4 years ago

rm /etc/wireguard/wg0.conf

would this cause conflict among peers?

say a peer has 10.9.0.4 and wg0.conf gets removed, adding new client also gets 10.9.0.4

crimist commented 4 years ago

@westz36 It deletes the main config so yes, you will have to setup your peers again.

tczee36 commented 4 years ago

@westz36 It deletes the main config so yes, you will have to setup your peers again.

is there a way to fix this without deleting the main config? thanks!

crimist commented 4 years ago

@westz36 I'm not sure. You could try to format your existing wg0.conf so that it follows the same format as one generated by this tool; it might fix the parsing issue.