diff options
| author | mhsanaei <ho3ein.sanaei@gmail.com> | 2024-06-07 15:41:45 +0300 |
|---|---|---|
| committer | mhsanaei <ho3ein.sanaei@gmail.com> | 2024-06-07 15:41:45 +0300 |
| commit | 713285457fedcf1b0f4f6f75db399d2dd042e802 (patch) | |
| tree | 024b46384aaa541e7d22ce2d990dcac941afb36e | |
| parent | e1ef746cab8f54be8ff23673ebb18d951ffa32e3 (diff) | |
{fix} outbound - wireguard
| -rw-r--r-- | web/assets/js/model/outbound.js | 1 | ||||
| -rw-r--r-- | web/html/xui/form/outbound.html | 14 |
2 files changed, 1 insertions, 14 deletions
diff --git a/web/assets/js/model/outbound.js b/web/assets/js/model/outbound.js index 8d4315d4..b282074f 100644 --- a/web/assets/js/model/outbound.js +++ b/web/assets/js/model/outbound.js @@ -1053,7 +1053,6 @@ Outbound.WireguardSettings = class extends CommonClass { super(); this.mtu = mtu; this.secretKey = secretKey; - this.pubKey = secretKey.length>0 ? Wireguard.generateKeypair(secretKey).publicKey : ''; this.address = address instanceof Array ? address.join(',') : address; this.workers = workers; this.domainStrategy = domainStrategy; diff --git a/web/html/xui/form/outbound.html b/web/html/xui/form/outbound.html index 0718d4ed..20adb535 100644 --- a/web/html/xui/form/outbound.html +++ b/web/html/xui/form/outbound.html @@ -72,21 +72,9 @@ </template> <a-input v-model.trim="outbound.settings.address"></a-input> </a-form-item> - <a-form-item> - <template slot="label"> - <a-tooltip> - <template slot="title"> - <span>{{ i18n "reset" }}</span> - </template> - {{ i18n "pages.xray.wireguard.secretKey" }} - <a-icon type="sync" @click="[outbound.settings.pubKey, outbound.settings.secretKey] = Object.values(Wireguard.generateKeypair())"></a-icon> - </a-tooltip> - </template> + <a-form-item label='{{ i18n "pages.xray.wireguard.secretKey" }}'> <a-input v-model.trim="outbound.settings.secretKey"></a-input> </a-form-item> - <a-form-item label='{{ i18n "pages.xray.wireguard.publicKey" }}'> - <a-input disabled v-model="outbound.settings.pubKey"></a-input> - </a-form-item> <a-form-item label='{{ i18n "pages.xray.wireguard.domainStrategy" }}'> <a-select v-model="outbound.settings.domainStrategy" :dropdown-class-name="themeSwitcher.currentTheme"> <a-select-option v-for="wds in ['', ...WireguardDomainStrategy]" :value="wds">[[ wds ]]</a-select-option> |
