benjamin-bader / amanuensis

ah - MAN - you - EN - sis: Web Traffic Inspector
GNU General Public License v3.0
2 stars 0 forks source link

Fix proxy-enabled handling #17

Closed benjamin-bader closed 6 years ago

benjamin-bader commented 6 years ago

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.