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 {
|
func (s *InboundService) hasUser(inboundType string) bool {
|
||||||
switch inboundType {
|
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 true
|
||||||
}
|
}
|
||||||
return false
|
return false
|
||||||
|
|||||||
+1
-1
@@ -39,7 +39,7 @@ func FillOutJson(i *model.Inbound, hostname string) error {
|
|||||||
outJson["server_port"] = (*inbound)["listen_port"]
|
outJson["server_port"] = (*inbound)["listen_port"]
|
||||||
|
|
||||||
switch i.Type {
|
switch i.Type {
|
||||||
case "http", "socks", "mixed":
|
case "http", "socks", "mixed", "anytls":
|
||||||
case "shadowsocks":
|
case "shadowsocks":
|
||||||
shadowsocksOut(&outJson, *inbound)
|
shadowsocksOut(&outJson, *inbound)
|
||||||
return nil
|
return nil
|
||||||
|
|||||||
Reference in New Issue
Block a user