forked from MrMohebi/xray-proxy-grabber-telegram
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathXrayConfig.py
29 lines (26 loc) · 846 Bytes
/
XrayConfig.py
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
from XrayRouting import *
from XrayInbound import *
class XrayConfigSimple:
policy: dict
log: dict
inbounds: List[Inbound]
outbounds: List[dict]
stats: dict
routing: XrayRouting
def __init__(self, inbounds: List[Any], outbounds: List[dict], routing: XrayRouting, stats: dict = None,
policy: dict = None, log: dict = None) -> None:
self.policy = policy if policy is not None else {
"system": {
"statsOutboundUplink": True,
"statsOutboundDownlink": True
}
}
self.log = log if log is not None else {
"access": "",
"error": "",
"loglevel": "warning"
}
self.inbounds = inbounds
self.outbounds = outbounds
self.stats = stats
self.routing = routing