Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
bug fixed for freess.site
Browse files Browse the repository at this point in the history
  • Loading branch information
the0demiurge committed Mar 4, 2019
1 parent 14a6127 commit f6aae6b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ssshare/ss/crawler.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,8 @@ def get_value(char):
'remarks': x[6],
'server': x[1],
'server_port': x[2],
'password': x[4],
'method': x[3],
'password': x[3],
'method': x[4],
} for x in data]
except Exception as e:
logging.exception(e, stack_info=True)
Expand Down
5 changes: 4 additions & 1 deletion ssshare/ss/ssr_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import time
import threading
from ssshare.ss import ss_local
import random


def test_connection(
Expand All @@ -25,7 +26,9 @@ def test_connection(
return ok, content


def test_socks_server(dictionary=None, str_json=None, port=2001):
def test_socks_server(dictionary=None, str_json=None, port=None):
if not port:
port = random.randint(2000, 3000)
try:
try:
loop, tcps, udps = ss_local.main(
Expand Down

0 comments on commit f6aae6b

Please sign in to comment.