fix: generate correct keys for shadowsocks inbounds

This commit is contained in:
Shishkevich D. authored and GitHub committed 2025-06-20 19:30:46 +07:00
1 parent f88b7b07f0
commit 2e6faf69e6
4 files changed
+12 -6

No files matched your search

+1 -1
View File
@@ -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>