mirror of https://github.com/aredn/aredn.git
Make sure the node nodes we use for tunnels are always uppercase (#1049)
This commit is contained in:
parent
1aabfd87bd
commit
6d8528fa56
|
@ -476,7 +476,7 @@ cm:foreach("vtun", "client",
|
||||||
function(s)
|
function(s)
|
||||||
if s.enabled == "1" then
|
if s.enabled == "1" then
|
||||||
cfg.tun_network_config = cfg.tun_network_config .. string.format("config client\n\toption enabled '1'\n\toption node '%s'\n\toption passwd '%s'\n\toption clientip '%s'\n\toption serverip '%s'\n\toption netip '%s'\n\n",
|
cfg.tun_network_config = cfg.tun_network_config .. string.format("config client\n\toption enabled '1'\n\toption node '%s'\n\toption passwd '%s'\n\toption clientip '%s'\n\toption serverip '%s'\n\toption netip '%s'\n\n",
|
||||||
s.node, s.passwd, s.clientip, s.serverip, s.netip)
|
s.node:upper(), s.passwd, s.clientip, s.serverip, s.netip)
|
||||||
vtunclients = vtunclients + 1
|
vtunclients = vtunclients + 1
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -524,7 +524,7 @@ cm:foreach("vtun", "server",
|
||||||
else
|
else
|
||||||
cfg.tun_network_config = cfg.tun_network_config ..
|
cfg.tun_network_config = cfg.tun_network_config ..
|
||||||
string.format("config server\n\toption enabled '1'\n\toption host '%s'\n\toption node '%s'\n\toption passwd '%s'\n\toption clientip '%s'\n\toption serverip '%s'\n\toption netip '%s'\n\n",
|
string.format("config server\n\toption enabled '1'\n\toption host '%s'\n\toption node '%s'\n\toption passwd '%s'\n\toption clientip '%s'\n\toption serverip '%s'\n\toption netip '%s'\n\n",
|
||||||
s.host, s.node, s.passwd, s.clientip, s.serverip, s.netip)
|
s.host, s.node:upper(), s.passwd, s.clientip, s.serverip, s.netip)
|
||||||
vtunservers = vtunservers + 1
|
vtunservers = vtunservers + 1
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue