From 8974e7440efa87fe93733b36b583de4a464da7d6 Mon Sep 17 00:00:00 2001 From: genshen Date: Wed, 7 Feb 2024 22:25:40 +0800 Subject: [PATCH] feat(gui): add input for accept the proxy auth token Note: passing proxy auth token to wssocks core is WIP. --- client-ui/main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client-ui/main.go b/client-ui/main.go index 5b815e1..d211a54 100644 --- a/client-ui/main.go +++ b/client-ui/main.go @@ -56,6 +56,7 @@ func main() { // basic input uiLocalAddr := &widget.Entry{PlaceHolder: "socks5 listen address", Text: "127.0.0.1:1080"} uiRemoteAddr := &widget.Entry{PlaceHolder: "wssocks server address"} + uiAuthToken := &widget.Entry{PlaceHolder: "the token for proxy authentication"} uiHttpEnable := newCheckbox("", false, nil) uiHttpLocalAddr := &widget.Entry{PlaceHolder: "http listen address", Text: "127.0.0.1:1086"} uiSkipTSLVerify := newCheckbox("", false, nil) @@ -163,6 +164,7 @@ func main() { &widget.Form{Items: []*widget.FormItem{ {Text: "socks5 address", Widget: uiLocalAddr}, {Text: "remote address", Widget: uiRemoteAddr}, + {Text: "auth token", Widget: uiAuthToken}, {Text: "http(s) proxy", Widget: uiHttpEnable}, {Text: "http(s) address", Widget: uiHttpLocalAddr}, {Text: "skip TSL verify", Widget: uiSkipTSLVerify},