Skip to content

Instantly share code, notes, and snippets.

View drunkpig's full-sized avatar
🌴
On vacation

drunkpig drunkpig

🌴
On vacation
View GitHub Profile
@drunkpig
drunkpig / macproxy.py
Created October 4, 2020 02:28
macos setup proxy
class MacSetting(object):
def __init__(self, args):
self.device = None
self.listen = None
self.modes = None
self.mode_name = None
for option in args.listen:
protos = [x.name for x in option.protos]
if option.unix or 'ssl' in protos or 'secure' in protos: