fix shadowsocks inbound

This commit is contained in:
Alireza Ahmadi
2024-01-09 23:22:59 +01:00
parent b63f305737
commit 93412f8a21

View File

@@ -16,7 +16,11 @@
<td>[[ client.email ]]</td>
<td>[[ client.password ]]</td>
</tr>
<a-form :colon="false" :label-col="{ md: {span:6} }" :wrapper-col="{ md: {span:14} }">
</table>
</a-collapse-panel>
</a-collapse>
</template>
<a-form :colon="false" :label-col="{ md: {span:6} }" :wrapper-col="{ md: {span:14} }">
<a-form-item label='{{ i18n "encryption" }}'>
<a-select v-model="inbound.settings.method" @change="SSMethodChange" :dropdown-class-name="themeSwitcher.currentTheme">
<a-select-option v-for="(method,method_name) in SSMethods" :value="method">[[ method_name ]]</a-select-option>
@@ -24,8 +28,13 @@
</a-form-item>
<a-form-item v-if="inbound.isSS2022">
<template slot="label">
<span>{{ i18n "password" }}</span>
<a-icon @click="inbound.settings.password = RandomUtil.randomShadowsocksPassword()" type="sync"></a-icon>
<a-tooltip>
<template slot="title">
<span>{{ i18n "pages.client.renew" }}</span>
</template>
{{ i18n "password" }}
<a-icon @click="client.password = RandomUtil.randomShadowsocksPassword()" type="sync"></a-icon>
</a-tooltip>
</template>
<a-input v-model.trim="inbound.settings.password"></a-input>
</a-form-item>