mirror of
https://github.com/caiwx86/small-packages.git
synced 2026-10-26 21:52:52 +08:00
update 2026-05-19 18:58:26
This commit is contained in:
1 parent
ffa897ed53
commit
71a617b7b7
2 files changed
+10
No files matched your search
@@ -806,6 +806,7 @@ if not load_shunt_options then
|
||||
if not (load_iface_options or load_balancing_options) then
|
||||
-- Special node cannot be use pre-proxy.
|
||||
o:value("1", translate("Preproxy Node"))
|
||||
o:value("3", translate("Outbound Interface"))
|
||||
end
|
||||
o:value("2", translate("Landing Node"))
|
||||
|
||||
@@ -814,6 +815,10 @@ if not load_shunt_options then
|
||||
o1.template = appname .. "/cbi/nodes_listvalue"
|
||||
o1.group = {}
|
||||
|
||||
o3 = s:option(Value, _n("outbound_iface"), translate("Outbound Interface"))
|
||||
o3.default = "eth1"
|
||||
o3:depends({ [_n("chain_proxy")] = "3" })
|
||||
|
||||
o2 = s:option(ListValue, _n("to_node"), translate("Landing Node"), translate("Only support a layer of proxy."))
|
||||
o2:depends({ [_n("chain_proxy")] = "2" })
|
||||
o2.template = appname .. "/cbi/nodes_listvalue"
|
||||
|
||||
@@ -1206,6 +1206,11 @@ function gen_config(var)
|
||||
end
|
||||
end
|
||||
end
|
||||
if node.chain_proxy == "3" and node.outbound_iface then
|
||||
if outbound.streamSettings and outbound.streamSettings.sockopt then
|
||||
outbound.streamSettings.sockopt.interface = node.outbound_iface
|
||||
end
|
||||
end
|
||||
return default_outTag, last_insert_outbound
|
||||
end
|
||||
|
||||
|
||||
Reference in new issue
Block a user