Skip to content

Commit

Permalink
Update gen_config.lua
Browse files Browse the repository at this point in the history
fix gen config module for tuic server params
  • Loading branch information
AmberisMyShiba authored Oct 7, 2023
1 parent 2625e04 commit 8f3f581
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions luci-app-ssr-plus/root/usr/share/shadowsocksr/gen_config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ local tuic = {
receive_window = tonumber(server.receive_window)
},
["local"] = {
server = tonumber(socks_port) and "[::]:" .. (socks_port == "0" and local_port or tonumber(socks_port)),
server = tonumber(socks_port) and (server.tuic_dual_stack == "1" and "[::1]:" or "127.0.0.1:") .. (socks_port == "0" and local_port or tonumber(socks_port)),
dual_stack = (server.tuic_dual_stack == "1") and true or false,
max_packet_size = tonumber(server.tuic_max_package_size)
}
Expand Down Expand Up @@ -501,4 +501,4 @@ function config:handleIndex(index)
end
end
local f = config:new()
f:handleIndex(server.type)
f:handleIndex(server.type)

0 comments on commit 8f3f581

Please sign in to comment.