Skip to content

Commit

Permalink
feat(gui): add input for accept the proxy auth token
Browse files Browse the repository at this point in the history
Note: passing proxy auth token to wssocks core is WIP.
  • Loading branch information
genshen committed Feb 7, 2024
1 parent 6eebf68 commit 8974e74
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions client-ui/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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},
Expand Down

0 comments on commit 8974e74

Please sign in to comment.