Was mistakenly using SCNetworkProtocolGetEnabled and its setter
partner; this does not actually control whether a given HTTP proxy is
considered "active". Instead, we'll now manually specify HTTPEnable.
This commit also fixes a use-after-free error in cfstring_as_std_string
by switching to use CFStringGetBytes, using a vector as a temporary
buffer.
Was mistakenly using SCNetworkProtocolGetEnabled and its setter partner; this does not actually control whether a given HTTP proxy is considered "active". Instead, we'll now manually specify HTTPEnable.
This commit also fixes a use-after-free error in cfstring_as_std_string by switching to use CFStringGetBytes, using a vector as a temporary buffer.