From 121bcf558d5c39e002ff630a58bd5f157942f66a Mon Sep 17 00:00:00 2001 From: NotStatilko Date: Wed, 10 Aug 2022 17:50:43 +0300 Subject: [PATCH] to-shadowsocks command is now to-ss --- README.md | 2 +- pyoutline.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 9c7dc0b..eafdd23 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ pyoutline client -k "ss://YWVzLTI1Ni1nY206Y2RCSURWNDJEQ3duZklO@ak1344.free.www.o ``` If you want to transform Outline Key into the ShadowSocks: ``` -pyoutline to-shadowsocks -k "ss://YWVzLTI1Ni1nY206Y2RCSURWNDJEQ3duZklO@ak1344.free.www.outline.network:8118" +pyoutline to-ss -k "ss://YWVzLTI1Ni1nY206Y2RCSURWNDJEQ3duZklO@ak1344.free.www.outline.network:8118" # ^ ss-local -s "ak1344.free.www.outline.network" -p 8118 -k "cdBIDV42DCwnfIN" -m "aes-256-gcm" -l 53735 ``` Set your own port or ask system to set the free one diff --git a/pyoutline.py b/pyoutline.py index 8ecc26b..cd1e1b7 100644 --- a/pyoutline.py +++ b/pyoutline.py @@ -47,7 +47,7 @@ def safe_cli(): '--port', '-p', type=click.IntRange(49152,65535), help='Listener proxy port' ) -def to_shadowsocks(outline_key, random_port, port): +def to_ss(outline_key, random_port, port): """Will transform Outline Proxy Key/file with Keys to ShadowSocks""" keys = Path(outline_key) @@ -62,7 +62,7 @@ def to_shadowsocks(outline_key, random_port, port): try: ok = OutlineKey(key) ss = ok.shadowsocks(random_port=random_port, port=port) - click.echo(bright_black(ss + '\n')) + click.echo(bright_black(ss)) except ValueError: click.echo(red('Invalid Key specified!'))