Explorar o código

minor OSX fix

Nicolas Cannasse %!s(int64=17) %!d(string=hai) anos
pai
achega
4a44c5e4f7
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      std/neko/net/ProxyDetect.hx

+ 1 - 1
std/neko/net/ProxyDetect.hx

@@ -157,7 +157,7 @@ class ProxyDetect {
 		var data : Dynamic = parseOSXConfiguration(xml);
 		for( nsname in Reflect.fields(data.NetworkServices) ) {
 			var ns : Dynamic = Reflect.field(data.NetworkServices,nsname);
-			if( ns.Proxies.HTTPEnable == 1 )
+			if( ns.Proxies != null && ns.Proxies.HTTPEnable == 1 )
 				return { host : ns.Proxies.HTTPProxy, port : ns.Proxies.HTTPPort, auth : null };
 		}
 		return null;