mirror of
https://github.com/asdlokj1qpi233/subconverter.git
synced 2025-10-28 20:32:42 +00:00
Enhancements
Add Subscription-UserInfo header to exporter, supports extracting from original headers and from info nodes. Optimize codes.
This commit is contained in:
@@ -35,6 +35,21 @@ proxy_subscription=NONE
|
||||
;Append a proxy type string ([SS] [SSR] [VMess]) to node remark.
|
||||
append_proxy_type=false
|
||||
|
||||
[userinfo]
|
||||
;Rules to extract stream data from node
|
||||
;Format: full_match_regex|new_format_regex
|
||||
;where new_format_regex should be like "total=$1&left=$2&used=$3"
|
||||
stream_rule=^剩余流量:(.*?) (.*)$|total=$1&left=$2
|
||||
stream_rule=^Bandwidth: (.*?)/(.*)$|used=$1&total=$2
|
||||
stream_rule=^\[.*?\]剩余(.*?)@(?:.*)$|total=$1
|
||||
|
||||
;Rules to extract expire time data from node
|
||||
;Format: full_match_regex|new_format_regex
|
||||
;where new_format_regex should follow this example: yyyy:mm:dd:hh:mm:ss
|
||||
time_rule=^过期时间:(\d+)-(\d+)-(\d+) (\d+):(\d+):(\d+)$|$1:$2:$3:$4:$5:$6
|
||||
time_rule=^到期时间:(\d+)-(\d+)-(\d+)$|$1:$2:$3:0:0:0
|
||||
time_rule=^Smart Access expire: (\d+)/(\d+)/(\d+)$|$1:$2:$3:0:0:0
|
||||
|
||||
[node_pref]
|
||||
udp_flag=false
|
||||
tcp_fast_open_flag=false
|
||||
|
||||
Reference in New Issue
Block a user