From fc71a155af2c729bbfd51174241503aac5e09785 Mon Sep 17 00:00:00 2001 From: mzz2017 <2017@duck.com> Date: Thu, 16 Mar 2023 18:46:49 +0800 Subject: [PATCH] fix: omit emty sni when sharing --- service/core/serverObj/v2ray.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/core/serverObj/v2ray.go b/service/core/serverObj/v2ray.go index 2e60af74..ae193461 100644 --- a/service/core/serverObj/v2ray.go +++ b/service/core/serverObj/v2ray.go @@ -39,7 +39,7 @@ type V2Ray struct { Net string `json:"net"` Type string `json:"type"` Host string `json:"host"` - SNI string `json:"sni"` + SNI string `json:"sni,omitempty"` Path string `json:"path"` TLS string `json:"tls"` Flow string `json:"flow,omitempty"`