From da0be1a2bfe7902b92a3b378700ab516d34a8afd Mon Sep 17 00:00:00 2001 From: idk Date: Wed, 25 Jan 2023 01:49:21 +0000 Subject: [PATCH] update go modules --- main_windows.go | 5 +---- osxview.go | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/main_windows.go b/main_windows.go index 665f1fd..5a22a9b 100644 --- a/main_windows.go +++ b/main_windows.go @@ -19,11 +19,8 @@ func LaunchView() error { if err := os.Setenv("NO_PROXY", "127.0.0.1:7672"); err != nil { return err } - if err := os.Setenv("ALL_PROXY", "socks5://127.0.0.1:"+*socksPort); err != nil { - return err - } debug := true - addr := configuration.Config.HttpHostAndPort + addr := configuration.Config().HttpHostAndPort webView := webview.NewWithOptions(webview.WebViewOptions{ Debug: debug, AutoFocus: true, diff --git a/osxview.go b/osxview.go index 99f992f..ac1db3f 100644 --- a/osxview.go +++ b/osxview.go @@ -18,11 +18,8 @@ func main() { if err := os.Setenv("NO_PROXY", "127.0.0.1:7672"); err != nil { log.Fatal(err) } - if err := os.Setenv("ALL_PROXY", "socks5://127.0.0.1:"+*socksPort); err != nil { - log.Fatal(err) - } debug := true - addr := configuration.Config.HttpHostAndPort + addr := configuration.Config().HttpHostAndPort webView := webview.New(debug) defer webView.Destroy() webView.SetTitle("Railroad Blog - Administration")