Skip to content

Instantly share code, notes, and snippets.

Avatar
🌴
On vacation

drunkpig drunkpig

🌴
On vacation
View GitHub Profile
@drunkpig
drunkpig / macproxy.py
Created Oct 4, 2020
macos setup proxy
View macproxy.py
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: