Browse Source

refactor: rename Methods as Constant

master
dnomd343 2 years ago
parent
commit
703537f3e8
  1. 2
      Basis/Constant.py
  2. 2
      Builder/Shadowsocks.py
  3. 2
      Builder/ShadowsocksR.py
  4. 2
      Builder/VMess.py
  5. 2
      Builder/Xray.py
  6. 2
      Tester/Hysteria.py
  7. 2
      Tester/Plugin.py
  8. 2
      Tester/Shadowsocks.py
  9. 2
      Tester/ShadowsocksR.py
  10. 2
      Tester/Trojan.py
  11. 2
      Tester/TrojanGo.py
  12. 2
      Tester/V2ray.py
  13. 2
      Tester/VLESS.py
  14. 2
      Tester/VMess.py
  15. 2
      Tester/Xray.py

2
Basis/Methods.py → Basis/Constant.py

@ -1,6 +1,8 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
version = 'dev'
# Shadowsocks Info
ssMethods = { # methods support of different Shadowsocks project
'ss-rust': [ # table method removed refer to https://github.com/shadowsocks/shadowsocks-rust/issues/887

2
Builder/Shadowsocks.py

@ -2,7 +2,7 @@
# -*- coding: utf-8 -*-
import json
from Basis.Methods import ssMethods, ssAllMethods
from Basis.Constant import ssMethods, ssAllMethods
def loadConfig(proxyInfo: dict, socksInfo: dict) -> dict: # load basic config option

2
Builder/ShadowsocksR.py

@ -2,7 +2,7 @@
# -*- coding: utf-8 -*-
import json
from Basis.Methods import ssrMethods, ssrProtocols, ssrObfuscations
from Basis.Constant import ssrMethods, ssrProtocols, ssrObfuscations
def load(proxyInfo: dict, socksInfo: dict, configFile: str) -> tuple[list, str, dict]:

2
Builder/VMess.py

@ -3,7 +3,7 @@
import json
from Builder import V2ray
from Basis.Methods import vmessMethods
from Basis.Constant import vmessMethods
def load(proxyInfo: dict, socksInfo: dict, configFile: str) -> tuple[list, str, dict]:

2
Builder/Xray.py

@ -2,7 +2,7 @@
# -*- coding: utf-8 -*-
from Builder import V2ray
from Basis.Methods import xtlsFlows
from Basis.Constant import xtlsFlows
loadConfig = V2ray.loadConfig

2
Tester/Hysteria.py

@ -8,7 +8,7 @@ from Builder import Hysteria
from Basis.Logger import logging
from Basis.Process import Process
from Tester.Settings import Settings
from Basis.Methods import hysteriaProtocols
from Basis.Constant import hysteriaProtocols
from Basis.Functions import hostFormat, genFlag, getAvailablePort

2
Tester/Plugin.py

@ -6,7 +6,7 @@ import re
import json
from Basis.Logger import logging
from Basis.Process import Process
from Basis.Methods import plugins
from Basis.Constant import plugins
from Tester.Settings import Settings
from Basis.Functions import genFlag, hostFormat, getAvailablePort

2
Tester/Shadowsocks.py

@ -10,7 +10,7 @@ from Builder import Shadowsocks
from Basis.Logger import logging
from Basis.Process import Process
from Tester.Settings import Settings
from Basis.Methods import ssMethods, ssAllMethods
from Basis.Constant import ssMethods, ssAllMethods
from Basis.Functions import md5Sum, genFlag, getAvailablePort

2
Tester/ShadowsocksR.py

@ -8,7 +8,7 @@ from Basis.Logger import logging
from Basis.Process import Process
from Tester.Settings import Settings
from Basis.Functions import genFlag, getAvailablePort
from Basis.Methods import ssrMethods, ssrProtocols, ssrObfuscations
from Basis.Constant import ssrMethods, ssrProtocols, ssrObfuscations
def loadServer(configFile: str, proxyInfo: dict) -> Process: # load server process

2
Tester/Trojan.py

@ -7,7 +7,7 @@ from Tester import Xray
from Builder import Trojan
from Basis.Logger import logging
from Basis.Process import Process
from Basis.Methods import xtlsFlows
from Basis.Constant import xtlsFlows
from Tester.Settings import Settings
from Basis.Functions import md5Sum, genFlag, getAvailablePort

2
Tester/TrojanGo.py

@ -8,7 +8,7 @@ from Builder import TrojanGo
from Basis.Logger import logging
from Basis.Process import Process
from Tester.Settings import Settings
from Basis.Methods import trojanGoMethods
from Basis.Constant import trojanGoMethods
from Basis.Functions import md5Sum, genFlag, getAvailablePort

2
Tester/V2ray.py

@ -5,7 +5,7 @@ import copy
import itertools
from Basis.Functions import genFlag
from Tester.Settings import Settings
from Basis.Methods import quicMethods, udpObfuscations
from Basis.Constant import quicMethods, udpObfuscations
httpConfig = {
'version': '1.1',

2
Tester/VLESS.py

@ -7,7 +7,7 @@ from Tester import Xray
from Builder import VLESS
from Basis.Logger import logging
from Basis.Process import Process
from Basis.Methods import xtlsFlows
from Basis.Constant import xtlsFlows
from Tester.Settings import Settings
from Basis.Functions import md5Sum, genUUID, getAvailablePort

2
Tester/VMess.py

@ -10,7 +10,7 @@ from Builder import pathEnv
from Basis.Logger import logging
from Basis.Process import Process
from Tester.Settings import Settings
from Basis.Methods import vmessMethods
from Basis.Constant import vmessMethods
from Basis.Functions import md5Sum, genUUID, getAvailablePort

2
Tester/Xray.py

@ -6,7 +6,7 @@ import itertools
from Tester import V2ray
from Basis.Functions import genFlag
from Tester.Settings import Settings
from Basis.Methods import xtlsFlows, quicMethods, udpObfuscations
from Basis.Constant import xtlsFlows, quicMethods, udpObfuscations
loadConfig = V2ray.loadConfig
tcpStream = V2ray.tcpStream

Loading…
Cancel
Save