--- lib/visualvm/platform7/lib/nbexec~ 2008-01-30 04:47:30 +0200 +++ lib/visualvm/platform7/lib/nbexec 2008-07-25 23:43:07 +0300 @@ -303,33 +303,7 @@ } detect_macosx_proxy () { - if [ ! -x /usr/sbin/scutil ] ; then return 1 - fi - - scutil_out=/tmp/nb-proxy-detection.$$ - cat < ${scutil_out} -open -show State:/Network/Global/Proxies -close -EOF - - if /usr/bin/grep -q "ProxyAuto.*: *1" ${scutil_out} >/dev/null ; then - rm ${scutil_out} - return 1 - fi - - if /usr/bin/grep -q "HTTPEnable *: *1" ${scutil_out} ; then - http_proxy_host=`/usr/bin/grep HTTPProxy ${scutil_out} | /usr/bin/awk '{print $3}'` - http_proxy_port=`/usr/bin/grep HTTPPort ${scutil_out} | /usr/bin/awk '{print $3} '` - http_proxy_tmp=$http_proxy_host:$http_proxy_port - rm ${scutil_out} - return 0 - fi - - http_proxy_tmp="DIRECT" - rm ${scutil_out} - return 0 } unset http_proxy_tmp