From 73cf4d5b7e137c39af5eb4191ea05d65781c43a0 Mon Sep 17 00:00:00 2001 From: Alireza Ahmadi Date: Thu, 29 May 2025 21:51:20 +0200 Subject: [PATCH] new protocol anytls --- service/inbounds.go | 2 +- util/outJson.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/service/inbounds.go b/service/inbounds.go index f37e894..0d96a8f 100644 --- a/service/inbounds.go +++ b/service/inbounds.go @@ -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 diff --git a/util/outJson.go b/util/outJson.go index 8ae8ec4..508f250 100644 --- a/util/outJson.go +++ b/util/outJson.go @@ -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