summaryrefslogtreecommitdiff
path: root/idc_irc_proxy.py
diff options
context:
space:
mode:
Diffstat (limited to 'idc_irc_proxy.py')
-rwxr-xr-xidc_irc_proxy.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/idc_irc_proxy.py b/idc_irc_proxy.py
index 1faa5f2..de5c7ba 100755
--- a/idc_irc_proxy.py
+++ b/idc_irc_proxy.py
@@ -218,14 +218,16 @@ class Server:
def main():
import argparse
parser = argparse.ArgumentParser()
- parser.add_argument('local_port', type=int)
+ parser.add_argument('bind_port', type=int)
parser.add_argument('username')
parser.add_argument('password')
parser.add_argument('--debug', '-v', action='store_true')
+ parser.add_argument('--idc-ip', default='andrewyu.org')
+ parser.add_argument('--idc-port', type=int, default=6835)
args = parser.parse_args()
- Server('andrewyu.org', 6835, '', ssl=True, persist=False,
- local_addr=('127.0.0.1', args.local_port), debug=args.debug,
+ Server(args.idc_ip, args.idc_port, '', ssl=True, persist=False,
+ local_addr=('127.0.0.1', args.bind_port), debug=args.debug,
ns_identity=(args.username, args.password)).main()
if __name__ == '__main__':