diff options
| author | MHSanaei <mc.sanaei@gmail.com> | 2023-02-09 22:18:06 +0300 |
|---|---|---|
| committer | MHSanaei <mc.sanaei@gmail.com> | 2023-02-09 22:18:06 +0300 |
| commit | b73e4173a3c1e69e02ad6b4e3b43e425e57a5be9 (patch) | |
| tree | d95d2f5e903d97082e11eb9f9023c165b1bde388 /web/html/xui/form/protocol/socks.html | |
3x-ui
Diffstat (limited to 'web/html/xui/form/protocol/socks.html')
| -rw-r--r-- | web/html/xui/form/protocol/socks.html | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/web/html/xui/form/protocol/socks.html b/web/html/xui/form/protocol/socks.html new file mode 100644 index 00000000..35c1c0b5 --- /dev/null +++ b/web/html/xui/form/protocol/socks.html @@ -0,0 +1,24 @@ +{{define "form/socks"}} +<a-form layout="inline"> +<!-- <a-form-item label="密码认证">--> + <a-form-item label='{{ i18n "password" }}'> + <a-switch :checked="inbound.settings.auth === 'password'" + @change="checked => inbound.settings.auth = checked ? 'password' : 'noauth'"></a-switch> + </a-form-item> + <template v-if="inbound.settings.auth === 'password'"> + <a-form-item label='{{ i18n "username" }}'> + <a-input v-model.trim="inbound.settings.accounts[0].user"></a-input> + </a-form-item> + <a-form-item label='{{ i18n "password" }}'> + <a-input v-model.trim="inbound.settings.accounts[0].pass"></a-input> + </a-form-item> + </template> + <a-form-item label='{{ i18n "pages.inbounds.enable" }} udp'> + <a-switch v-model="inbound.settings.udp"></a-switch> + </a-form-item> + <a-form-item v-if="inbound.settings.udp" + label="IP"> + <a-input v-model.trim="inbound.settings.ip"></a-input> + </a-form-item> +</a-form> +{{end}}
\ No newline at end of file |
