From c3315f8b9a33023ca9bfd24d0d494a40302d4972 Mon Sep 17 00:00:00 2001 From: yylyyl Date: Sun, 13 Mar 2022 01:23:41 +0800 Subject: [PATCH] Bugfix: null pointer panic --- ieproxy_darwin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ieproxy_darwin.go b/ieproxy_darwin.go index f634bd0..ab56b94 100644 --- a/ieproxy_darwin.go +++ b/ieproxy_darwin.go @@ -73,7 +73,7 @@ func writeConf() { } cfNumHttpsEnable := C.CFNumberRef(C.CFDictionaryGetValue(cfDictProxy, unsafe.Pointer(C.kCFNetworkProxiesHTTPSEnable))) - if unsafe.Pointer(cfNumHttpEnable) != C.NULL && cfNumberGetGoInt(cfNumHttpsEnable) > 0 { + if unsafe.Pointer(cfNumHttpsEnable) != C.NULL && cfNumberGetGoInt(cfNumHttpsEnable) > 0 { darwinProxyConf.Static.Active = true if darwinProxyConf.Static.Protocols == nil { darwinProxyConf.Static.Protocols = make(map[string]string)