-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathshow
executable file
·36 lines (27 loc) · 806 Bytes
/
show
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/bash
. /usr/local/bin/kcp_ss_lib
if [ -z "$SS_LINK" ]; then
SS_LINK="$(base64_ss_link $HOST $SS_PORT $SS_PASSWORD $SS_METHOD)#SS:$HOST:$SS_PORT"
fi
if [ -z "$SIP002_LINK" ]; then
SIP002_LINK=$(tag_link $(sip002_link $HOST $SS_PORT) "SS:$HOST:$SS_PORT")
fi
if [ -z "$KCPTUN_SS_LINK" ]; then
KCPTUN_SS_LINK=$(tag_link $(kcp_ss_link $HOST $SS_PORT $SS_PASSWORD $KCPTUN_PORT $KCPTUN_PASSWORD $SS_METHOD $KCPTUN_CRYPT) "KCP_SS:$HOST:$KCPTUN_PORT")
fi
echo "Shadowsocks original link: $SS_LINK"
echo
echo "QR code: $(qr_link $SS_LINK)"
echo
echo "----"
echo
echo "SIP002 link: $SIP002_LINK"
echo
echo "QR code: $(qr_link $SIP002_LINK)"
echo
echo "----"
echo
echo "KCPTUN SS link (for Android and Windows clients): $KCPTUN_SS_LINK"
echo
echo "QR code: $(qr_link $KCPTUN_SS_LINK)"
echo