new protocol anytls
This commit is contained in:
+1
-1
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user