Open sskras opened 3 weeks ago
Very valid request, I support this take.
BTW, numbers of both these lines have been increment recently. Now it's:
https://github.com/sskras/wg-peers/blob/d359838d3c6364eefc2717a6d548d0a6d5ab774f/wg-peer#L112
https://github.com/sskras/wg-peers/blob/d359838d3c6364eefc2717a6d548d0a6d5ab774f/wg-peer#L120
@nicholasmireles commented on Jul 28, 2024:
Some minor tweaks if you don't have/want
jq
installed:Line 111:
NAMESERVER=$(resolvectl dns eth0 | cut -d" " -f4)
if you know eth0 is your normal interface.Line 119:
ENDPOINT=$(curl -s https://ipinfo.io/ip)