diff options
Diffstat (limited to 'web/html')
| -rw-r--r-- | web/html/form/client.html | 2 | ||||
| -rw-r--r-- | web/html/form/protocol/shadowsocks.html | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/web/html/form/client.html b/web/html/form/client.html index c67f1470..846bbd13 100644 --- a/web/html/form/client.html +++ b/web/html/form/client.html @@ -22,7 +22,7 @@ <span>{{ i18n "reset" }}</span> </template> {{ i18n "password" }} - <a-icon v-if="inbound.protocol === Protocols.SHADOWSOCKS"@click="client.password = RandomUtil.randomShadowsocksPassword()" type="sync"></a-icon> + <a-icon v-if="inbound.protocol === Protocols.SHADOWSOCKS" @click="client.password = RandomUtil.randomShadowsocksPassword(inbound.settings.method)" type="sync"></a-icon> <a-icon v-if="inbound.protocol === Protocols.TROJAN" @click="client.password = RandomUtil.randomSeq(10)"type="sync"> </a-icon> </a-tooltip> </template> diff --git a/web/html/form/protocol/shadowsocks.html b/web/html/form/protocol/shadowsocks.html index b9813afb..06e12075 100644 --- a/web/html/form/protocol/shadowsocks.html +++ b/web/html/form/protocol/shadowsocks.html @@ -31,7 +31,7 @@ <a-tooltip> <template slot="title"> <span>{{ i18n "reset" }}</span> - </template> Password <a-icon @click="inbound.settings.password = RandomUtil.randomShadowsocksPassword()" type="sync"></a-icon> + </template> Password <a-icon @click="inbound.settings.password = RandomUtil.randomShadowsocksPassword(inbound.settings.method)" type="sync"></a-icon> </a-tooltip> </template> <a-input v-model.trim="inbound.settings.password"></a-input> |
