Skip to content

Commit 7988687

Browse files
author
drovosek229
committed
Routing: Add webhook to rules (XTLS#5722)
XTLS#5722 (comment)
1 parent 050487a commit 7988687

File tree

6 files changed

+513
-63
lines changed

6 files changed

+513
-63
lines changed

app/router/config.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ type Rule struct {
1818
RuleTag string
1919
Balancer *Balancer
2020
Condition Condition
21+
Webhook *WebhookNotifier
2122
}
2223

2324
func (r *Rule) GetTag() (string, error) {

app/router/config.pb.go

Lines changed: 127 additions & 47 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/router/config.proto

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,13 @@ message RoutingRule {
114114

115115
xray.common.net.PortList vless_route_list = 20;
116116
repeated string process = 21;
117+
WebhookConfig webhook = 22;
118+
}
119+
120+
message WebhookConfig {
121+
string url = 1;
122+
uint32 deduplication = 2;
123+
map<string, string> headers = 3;
117124
}
118125

119126
message BalancingRule {

0 commit comments

Comments
 (0)