新增 Clash/mihomo 节点输出: sbp user show --clash
This commit is contained in:
1 parent
79fe594385
commit
f9874454f0
16 files changed
+318
-14
No files matched your search
@@ -4,7 +4,7 @@ import unittest
|
||||
from sbp.config import build_client_config, build_server_config
|
||||
from sbp.errors import SbpError
|
||||
from sbp.share import all_uris, share_uri
|
||||
from tests.test_state import SERVER_SS_KEY, USER_SS_KEY, sample_state
|
||||
from tests.test_state import CERT_SHA256, SERVER_SS_KEY, USER_SS_KEY, sample_state
|
||||
|
||||
|
||||
class ServerConfigTest(unittest.TestCase):
|
||||
@@ -114,7 +114,7 @@ class ShareUriTest(unittest.TestCase):
|
||||
|
||||
def test_hysteria2_pin_and_obfs(self) -> None:
|
||||
uri = share_uri(self.state, "hysteria2", self.user)
|
||||
self.assertIn("pinSHA256=SHA256", uri)
|
||||
self.assertIn(f"pinSHA256={CERT_SHA256}", uri)
|
||||
self.assertIn("obfs=salamander", uri)
|
||||
|
||||
def test_vless_reality_parameters(self) -> None:
|
||||
|
||||
Reference in new issue
Block a user