Explorar el Código

minor OSX fix

Nicolas Cannasse hace 17 años
padre
commit
4a44c5e4f7
Se han modificado 1 ficheros con 1 adiciones y 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;