mirror of
https://github.com/alireza0/s-ui.git
synced 2026-09-01 01:19:09 +00:00
new protocol anytls
This commit is contained in:
parent
1991091444
commit
73cf4d5b7e
2 changed files with 2 additions and 2 deletions
|
|
@ -227,7 +227,7 @@ func (s *InboundService) GetAllConfig(db *gorm.DB) ([]json.RawMessage, error) {
|
|||
|
||||
func (s *InboundService) hasUser(inboundType string) bool {
|
||||
switch inboundType {
|
||||
case "mixed", "socks", "http", "shadowsocks", "vmess", "trojan", "naive", "hysteria", "shadowtls", "tuic", "hysteria2", "vless":
|
||||
case "mixed", "socks", "http", "shadowsocks", "vmess", "trojan", "naive", "hysteria", "shadowtls", "tuic", "hysteria2", "vless", "anytls":
|
||||
return true
|
||||
}
|
||||
return false
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ func FillOutJson(i *model.Inbound, hostname string) error {
|
|||
outJson["server_port"] = (*inbound)["listen_port"]
|
||||
|
||||
switch i.Type {
|
||||
case "http", "socks", "mixed":
|
||||
case "http", "socks", "mixed", "anytls":
|
||||
case "shadowsocks":
|
||||
shadowsocksOut(&outJson, *inbound)
|
||||
return nil
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue