new protocol anytls

This commit is contained in:
Alireza Ahmadi
2025-05-29 21:51:20 +02:00
parent 1991091444
commit 73cf4d5b7e
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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