新增 Clash/mihomo 节点输出: sbp user show --clash

This commit is contained in:
typist committed 2026-11-01 06:58:42 +08:00
1 parent 79fe594385
commit f9874454f0
16 files changed
+318 -14

No files matched your search

+2 -1
View File
@@ -6,6 +6,7 @@ from sbp.state import ProtocolState, RealityState, State, TlsState, User, migrat
USER_UUID = "11111111-2222-3333-4444-555555555555"
USER_SS_KEY = base64.b64encode(b"0123456789abcdef").decode()
SERVER_SS_KEY = base64.b64encode(b"abcdef0123456789").decode()
CERT_SHA256 = "ab" * 32
def sample_state() -> State:
@@ -21,7 +22,7 @@ def sample_state() -> State:
sni="www.bing.com",
self_signed=True,
spki_pin="SPKI",
cert_sha256="SHA256",
cert_sha256=CERT_SHA256,
),
reality=RealityState(private_key="PRIVATE", public_key="PUBLIC"),
users=[User("u1", "PASSWORD", USER_UUID, USER_SS_KEY, "2026-01-01T00:00:00Z")],