diff --git a/web/assets/js/model/inbound.js b/web/assets/js/model/inbound.js index 9d951f93..78dbff56 100644 --- a/web/assets/js/model/inbound.js +++ b/web/assets/js/model/inbound.js @@ -980,6 +980,8 @@ class UdpMask extends XrayCommonClass { case 'header-dns': case 'xdns': return { domain: settings.domain || '' }; + case 'xicmp': + return { ip: settings.ip || '', id: settings.id ?? 0 }; case 'mkcp-original': case 'header-dtls': case 'header-srtp': @@ -1305,14 +1307,6 @@ class Inbound extends XrayCommonClass { return null; } - get kcpType() { - return this.stream.kcp.type; - } - - get kcpSeed() { - return this.stream.kcp.seed; - } - get serviceName() { return this.stream.grpc.serviceName; } @@ -1388,8 +1382,6 @@ class Inbound extends XrayCommonClass { } } else if (network === 'kcp') { const kcp = this.stream.kcp; - obj.type = kcp.type; - obj.path = kcp.seed; } else if (network === 'ws') { const ws = this.stream.ws; obj.path = ws.path; @@ -1452,8 +1444,6 @@ class Inbound extends XrayCommonClass { break; case "kcp": const kcp = this.stream.kcp; - params.set("headerType", kcp.type); - params.set("seed", kcp.seed); break; case "ws": const ws = this.stream.ws; @@ -1557,8 +1547,6 @@ class Inbound extends XrayCommonClass { break; case "kcp": const kcp = this.stream.kcp; - params.set("headerType", kcp.type); - params.set("seed", kcp.seed); break; case "ws": const ws = this.stream.ws; @@ -1638,8 +1626,6 @@ class Inbound extends XrayCommonClass { break; case "kcp": const kcp = this.stream.kcp; - params.set("headerType", kcp.type); - params.set("seed", kcp.seed); break; case "ws": const ws = this.stream.ws; diff --git a/web/assets/js/model/outbound.js b/web/assets/js/model/outbound.js index 37d0fda3..89fccfa8 100644 --- a/web/assets/js/model/outbound.js +++ b/web/assets/js/model/outbound.js @@ -581,6 +581,8 @@ class UdpMask extends CommonClass { case 'header-dns': case 'xdns': return { domain: settings.domain || '' }; + case 'xicmp': + return { ip: settings.ip || '', id: settings.id ?? 0 }; case 'mkcp-original': case 'header-dtls': case 'header-srtp': diff --git a/web/html/xui/form/stream/stream_finalmask.html b/web/html/xui/form/stream/stream_finalmask.html index be213507..e510decd 100644 --- a/web/html/xui/form/stream/stream_finalmask.html +++ b/web/html/xui/form/stream/stream_finalmask.html @@ -48,6 +48,9 @@ v-if="['tcp', 'ws', 'httpupgrade', 'xhttp'].includes(inbound.stream.network)" value="xdns"> xDNS (Experimental) + + xICMP (Experimental) [[ inbound.stream.xhttp.mode ]] - - - kcp {{ i18n "encryption" }}[[ inbound.kcpType ]] - kcp {{ i18n "password" }}[[ inbound.kcpSeed ]] - - + grpc serviceName @@ -443,4 +438,4 @@ }); -{{end}} +{{end}} \ No newline at end of file