-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
API: add Source IP Block command #3211
Conversation
Haha I almost forgot why you added the routing API. Great work! |
只是问一下,似乎 #3189 也可以做到这件事?如果是的话,为此多加一项 API 的意义是? |
@RPRX 方便他们的各种面板增删规则(?) |
@Fangliding @RPRX yes it does. far as i checked, a lot of clients asked for such option like this, so i decided to simplifying it by adding an API. |
确实从 api 设计的角度讲 应该设计成 parameterized 一个 command 解决所有问题 |
比起这些麻烦您们加feature的时候把文档都同步加一下() |
* main: (24 commits) Add "nosni" option to send empty SNI (XTLS#3214) API: add Source IP Block command (XTLS#3211) v1.8.10 Fix TestXrayConfig in xray_test.go Add separate host config for websocket Update proto file for websocket and httpupgrade (breaking) API - Add | Remove Routing Rules (XTLS#3189) Fix host in headers field does not work XTLS#3191 fix: config `burstObservatory` override Bump github.com/sagernet/sing from 0.3.6 to 0.3.8 Add support for HTTPupgrade custom headers improve balancer_info.go Fix(httpupgrade): `X-Forwarded-For` header not read. (XTLS#3172) Allow to send through random IPv6 Update HTTPUpgrade spelling and proto Chore: Clean up legacy `field` usage Update README.md Bump github.com/quic-go/quic-go from 0.41.0 to 0.42.0 Fix HTTPUpgrade transport register HTTPUpgrade 0-RTT (XTLS#3152) ...
This reverts commit ba57ccd. Because this commit conflict with api getr/setr.
add Source IP Block command for clients. x-ui and ...
kinda help for ip restriction.
./xray api sib --server=127.0.0.1:62789 -outbound=blocked -inbound=socks5 -reset 127.0.0.1 1.1.1.1 ...
#1317