Skip to content

Commit

Permalink
config: remove proxy protocol support
Browse files Browse the repository at this point in the history
This feature was marked as deprecated and removed in sing-box 1.6.
  • Loading branch information
1715173329 authored Oct 3, 2023
1 parent ae34497 commit 930df6f
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 23 deletions.
8 changes: 0 additions & 8 deletions htdocs/luci-static/resources/view/homeproxy/node.js
Original file line number Diff line number Diff line change
Expand Up @@ -615,14 +615,6 @@ return view.extend({
so.datatype = 'port';
so.depends('type', 'direct');

so = ss.option(form.ListValue, 'proxy_protocol', _('Proxy protocol'),
_('Write Proxy Protocol in the connection header.'));
so.value('', _('Disable'));
so.value('1');
so.value('2');
so.depends('type', 'direct');
so.modalonly = true;

/* Hysteria (2) config start */
so = ss.option(form.ListValue, 'hysteria_protocol', _('Protocol'));
so.value('udp');
Expand Down
12 changes: 0 additions & 12 deletions htdocs/luci-static/resources/view/homeproxy/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -682,18 +682,6 @@ return view.extend({
o.value(i, hp.dns_strategy[i])
o.modalonly = true;

o = s.option(form.Flag, 'proxy_protocol', _('Proxy protocol'),
_('Parse Proxy Protocol in the connection header.'));
o.default = o.disabled;
o.depends({'network': 'udp', '!reverse': true});
o.modalonly = true;

o = s.option(form.Flag, 'proxy_protocol_accept_no_header', _('Accept no header'),
_('Accept connections without Proxy Protocol header.'));
o.default = o.disabled;
o.depends('proxy_protocol', '1');
o.modalonly = true;

o = s.option(form.ListValue, 'network', _('Network'));
o.value('tcp', _('TCP'));
o.value('udp', _('UDP'));
Expand Down
1 change: 0 additions & 1 deletion root/etc/homeproxy/scripts/generate_client.uc
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ function generate_outbound(node) {
/* Direct */
override_address: node.override_address,
override_port: strToInt(node.override_port),
proxy_protocol: strToInt(node.proxy_protocol),
/* Hysteria (2) */
up_mbps: strToInt(node.hysteria_down_mbps),
down_mbps: strToInt(node.hysteria_down_mbps),
Expand Down
2 changes: 0 additions & 2 deletions root/etc/homeproxy/scripts/generate_server.uc
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@ uci.foreach(uciconfig, uciserver, (cfg) => {
sniff: true,
sniff_override_destination: (cfg.sniff_override === '1'),
domain_strategy: cfg.domain_strategy,
proxy_protocol: strToBool(cfg.proxy_protocol),
proxy_protocol_accept_no_header: strToBool(cfg.proxy_protocol_accept_no_header),
network: cfg.network,

/* Hysteria */
Expand Down

0 comments on commit 930df6f

Please sign in to comment.