Make sure the node nodes we use for tunnels are always uppercase (#1049)

This commit is contained in:
Tim Wilkinson 2024-01-01 17:36:18 -08:00 committed by GitHub
parent 1aabfd87bd
commit 6d8528fa56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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