diff --git a/web/assets/js/model/xray.js b/web/assets/js/model/xray.js
index 2a2204a2..699796a1 100644
--- a/web/assets/js/model/xray.js
+++ b/web/assets/js/model/xray.js
@@ -1685,11 +1685,12 @@ Inbound.ShadowsocksSettings = class extends Inbound.Settings {
};
Inbound.DokodemoSettings = class extends Inbound.Settings {
- constructor(protocol, address, port, network='tcp,udp') {
+ constructor(protocol, address, port, network='tcp,udp', followRedirect=false) {
super(protocol);
this.address = address;
this.port = port;
this.network = network;
+ this.followRedirect = followRedirect;
}
static fromJson(json={}) {
@@ -1698,6 +1699,7 @@ Inbound.DokodemoSettings = class extends Inbound.Settings {
json.address,
json.port,
json.network,
+ json.followRedirect,
);
}
@@ -1706,6 +1708,7 @@ Inbound.DokodemoSettings = class extends Inbound.Settings {
address: this.address,
port: this.port,
network: this.network,
+ followRedirect: this.followRedirect,
};
}
};
diff --git a/web/html/xui/form/protocol/dokodemo.html b/web/html/xui/form/protocol/dokodemo.html
index a4dde06d..f0add967 100644
--- a/web/html/xui/form/protocol/dokodemo.html
+++ b/web/html/xui/form/protocol/dokodemo.html
@@ -13,5 +13,9 @@
[[inbound]]{{end}} \ No newline at end of file