diff options
| author | MHSanaei <ho3ein.sanaei@gmail.com> | 2026-05-04 17:36:33 +0300 |
|---|---|---|
| committer | MHSanaei <ho3ein.sanaei@gmail.com> | 2026-05-04 17:39:29 +0300 |
| commit | c90f8a05bf792e61db250f210834cdabcc0b7906 (patch) | |
| tree | d2d610e9dc3e1a856a6f9be2510f4a323ee0126c /web/html/form | |
| parent | 9f96ef83ece25934dfadec69aff3fe91e14301cd (diff) | |
fix(security): sanitize remote IP headers and escape log viewer output
#4135
Diffstat (limited to 'web/html/form')
| -rw-r--r-- | web/html/form/inbound.html | 28 | ||||
| -rw-r--r-- | web/html/form/protocol/dokodemo.html | 2 | ||||
| -rw-r--r-- | web/html/form/protocol/hysteria.html | 2 | ||||
| -rw-r--r-- | web/html/form/protocol/shadowsocks.html | 2 | ||||
| -rw-r--r-- | web/html/form/protocol/trojan.html | 2 | ||||
| -rw-r--r-- | web/html/form/protocol/vless.html | 2 | ||||
| -rw-r--r-- | web/html/form/protocol/vmess.html | 2 | ||||
| -rw-r--r-- | web/html/form/stream/stream_settings.html | 18 | ||||
| -rw-r--r-- | web/html/form/tls_settings.html | 2 |
9 files changed, 30 insertions, 30 deletions
diff --git a/web/html/form/inbound.html b/web/html/form/inbound.html index 736a1fd4..61d7bc57 100644 --- a/web/html/form/inbound.html +++ b/web/html/form/inbound.html @@ -102,69 +102,69 @@ <!-- vmess settings --> <template v-if="inbound.protocol === Protocols.VMESS"> - {{template "form/vmess"}} + {{template "form/vmess" .}} </template> <!-- vless settings --> <template v-if="inbound.protocol === Protocols.VLESS"> - {{template "form/vless"}} + {{template "form/vless" .}} </template> <!-- trojan settings --> <template v-if="inbound.protocol === Protocols.TROJAN"> - {{template "form/trojan"}} + {{template "form/trojan" .}} </template> <!-- shadowsocks --> <template v-if="inbound.protocol === Protocols.SHADOWSOCKS"> - {{template "form/shadowsocks"}} + {{template "form/shadowsocks" .}} </template> <!-- tunnel --> <template v-if="inbound.protocol === Protocols.TUNNEL"> - {{template "form/tunnel"}} + {{template "form/tunnel" .}} </template> <!-- mixed --> <template v-if="inbound.protocol === Protocols.MIXED"> - {{template "form/mixed"}} + {{template "form/mixed" .}} </template> <!-- http --> <template v-if="inbound.protocol === Protocols.HTTP"> - {{template "form/http"}} + {{template "form/http" .}} </template> <!-- wireguard --> <template v-if="inbound.protocol === Protocols.WIREGUARD"> - {{template "form/wireguard"}} + {{template "form/wireguard" .}} </template> <!-- tun --> <template v-if="inbound.protocol === Protocols.TUN"> - {{template "form/tun"}} + {{template "form/tun" .}} </template> <!-- hysteria --> <template v-if="inbound.protocol === Protocols.HYSTERIA"> - {{template "form/hysteria"}} + {{template "form/hysteria" .}} </template> <!-- stream settings --> <template v-if="inbound.canEnableStream()"> - {{template "form/streamSettings"}} - {{template "form/externalProxy" }} + {{template "form/streamSettings" .}} + {{template "form/externalProxy" .}} </template> <!-- tls settings --> <template v-if="inbound.canEnableTls()"> - {{template "form/tlsSettings"}} + {{template "form/tlsSettings" .}} </template> <!-- sniffing --> <a-collapse> <a-collapse-panel header='Sniffing'> - {{template "form/sniffing"}} + {{template "form/sniffing" .}} </a-collapse-panel> </a-collapse> diff --git a/web/html/form/protocol/dokodemo.html b/web/html/form/protocol/dokodemo.html index 4437a3e3..1dbace29 100644 --- a/web/html/form/protocol/dokodemo.html +++ b/web/html/form/protocol/dokodemo.html @@ -32,6 +32,6 @@ </a-form> <!-- sockopt --> <template> - {{template "form/streamSockopt"}} + {{template "form/streamSockopt" .}} </template> {{end}}
\ No newline at end of file diff --git a/web/html/form/protocol/hysteria.html b/web/html/form/protocol/hysteria.html index 557ebb43..5613dfc5 100644 --- a/web/html/form/protocol/hysteria.html +++ b/web/html/form/protocol/hysteria.html @@ -1,7 +1,7 @@ {{define "form/hysteria"}} <a-collapse activeKey="0" v-for="(client, index) in inbound.settings.hysterias.slice(0,1)" v-if="!isEdit"> <a-collapse-panel header='{{ i18n "pages.inbounds.client" }}'> - {{template "form/client"}} + {{template "form/client" .}} </a-collapse-panel> </a-collapse> <a-collapse v-else> diff --git a/web/html/form/protocol/shadowsocks.html b/web/html/form/protocol/shadowsocks.html index 8112222c..12371399 100644 --- a/web/html/form/protocol/shadowsocks.html +++ b/web/html/form/protocol/shadowsocks.html @@ -2,7 +2,7 @@ <template v-if="inbound.isSSMultiUser"> <a-collapse activeKey="0" v-for="(client, index) in inbound.settings.shadowsockses.slice(0,1)" v-if="!isEdit"> <a-collapse-panel header='{{ i18n "pages.inbounds.client" }}'> - {{template "form/client"}} + {{template "form/client" .}} </a-collapse-panel> </a-collapse> <a-collapse v-else> diff --git a/web/html/form/protocol/trojan.html b/web/html/form/protocol/trojan.html index 4d99ff43..5d36808d 100644 --- a/web/html/form/protocol/trojan.html +++ b/web/html/form/protocol/trojan.html @@ -1,7 +1,7 @@ {{define "form/trojan"}} <a-collapse activeKey="0" v-for="(client, index) in inbound.settings.trojans.slice(0,1)" v-if="!isEdit"> <a-collapse-panel header='{{ i18n "pages.inbounds.client" }}'> - {{template "form/client"}} + {{template "form/client" .}} </a-collapse-panel> </a-collapse> <a-collapse v-else> diff --git a/web/html/form/protocol/vless.html b/web/html/form/protocol/vless.html index 1801026e..f8ee1542 100644 --- a/web/html/form/protocol/vless.html +++ b/web/html/form/protocol/vless.html @@ -1,7 +1,7 @@ {{define "form/vless"}} <a-collapse activeKey="0" v-for="(client, index) in inbound.settings.vlesses.slice(0,1)" v-if="!isEdit"> <a-collapse-panel header='{{ i18n "pages.inbounds.client" }}'> - {{template "form/client"}} + {{template "form/client" .}} </a-collapse-panel> </a-collapse> <a-collapse v-else> diff --git a/web/html/form/protocol/vmess.html b/web/html/form/protocol/vmess.html index 9e13da50..1beb4259 100644 --- a/web/html/form/protocol/vmess.html +++ b/web/html/form/protocol/vmess.html @@ -1,7 +1,7 @@ {{define "form/vmess"}} <a-collapse activeKey="0" v-for="(client, index) in inbound.settings.vmesses.slice(0,1)" v-if="!isEdit"> <a-collapse-panel header='{{ i18n "pages.inbounds.client" }}'> - {{template "form/client"}} + {{template "form/client" .}} </a-collapse-panel> </a-collapse> <a-collapse v-else> diff --git a/web/html/form/stream/stream_settings.html b/web/html/form/stream/stream_settings.html index a3df1a22..2a918305 100644 --- a/web/html/form/stream/stream_settings.html +++ b/web/html/form/stream/stream_settings.html @@ -17,42 +17,42 @@ <!-- tcp --> <template v-if="inbound.stream.network === 'tcp'"> - {{template "form/streamTCP"}} + {{template "form/streamTCP" .}} </template> <!-- kcp --> <template v-if="inbound.stream.network === 'kcp'"> - {{template "form/streamKCP"}} + {{template "form/streamKCP" .}} </template> <!-- ws --> <template v-if="inbound.stream.network === 'ws'"> - {{template "form/streamWS"}} + {{template "form/streamWS" .}} </template> <!-- grpc --> <template v-if="inbound.stream.network === 'grpc'"> - {{template "form/streamGRPC"}} + {{template "form/streamGRPC" .}} </template> <!-- hysteria --> <template v-if="inbound.stream.network === 'hysteria'"> - {{template "form/streamHysteria"}} + {{template "form/streamHysteria" .}} </template> <!-- httpupgrade --> <template v-if="inbound.stream.network === 'httpupgrade'"> - {{template "form/streamHTTPUpgrade"}} + {{template "form/streamHTTPUpgrade" .}} </template> <!-- xhttp --> <template v-if="inbound.stream.network === 'xhttp'"> - {{template "form/streamXHTTP"}} + {{template "form/streamXHTTP" .}} </template> <!-- sockopt --> -<template> {{template "form/streamSockopt"}} </template> +<template> {{template "form/streamSockopt" .}} </template> <!-- finalmask --> -<template> {{template "form/streamFinalMask"}} </template> +<template> {{template "form/streamFinalMask" .}} </template> {{end}}
\ No newline at end of file diff --git a/web/html/form/tls_settings.html b/web/html/form/tls_settings.html index 26c67aa3..c34a6b2b 100644 --- a/web/html/form/tls_settings.html +++ b/web/html/form/tls_settings.html @@ -132,7 +132,7 @@ <!-- reality settings --> <template v-if="inbound.stream.isReality"> - {{template "form/realitySettings"}} + {{template "form/realitySettings" .}} </template> </a-form> {{end}}
\ No newline at end of file |
