Skip to content

Commit 8809cbd

Browse files
committed
Transport: Remove GUN (an alias of gRPC)
1 parent 9bdf72d commit 8809cbd

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

infra/conf/transport_internet.go

+1-5
Original file line numberDiff line numberDiff line change
@@ -669,7 +669,7 @@ func (p TransportProtocol) Build() (string, error) {
669669
return "websocket", nil
670670
case "h2", "h3", "http":
671671
return "http", nil
672-
case "grpc", "gun":
672+
case "grpc":
673673
return "grpc", nil
674674
case "httpupgrade":
675675
return "httpupgrade", nil
@@ -807,7 +807,6 @@ type StreamConfig struct {
807807
HTTPSettings *HTTPConfig `json:"httpSettings"`
808808
SocketSettings *SocketConfig `json:"sockopt"`
809809
GRPCConfig *GRPCConfig `json:"grpcSettings"`
810-
GUNConfig *GRPCConfig `json:"gunSettings"`
811810
HTTPUPGRADESettings *HttpUpgradeConfig `json:"httpupgradeSettings"`
812811
SplitHTTPSettings *SplitHTTPConfig `json:"splithttpSettings"`
813812
}
@@ -900,9 +899,6 @@ func (c *StreamConfig) Build() (*internet.StreamConfig, error) {
900899
Settings: serial.ToTypedMessage(ts),
901900
})
902901
}
903-
if c.GRPCConfig == nil {
904-
c.GRPCConfig = c.GUNConfig
905-
}
906902
if c.GRPCConfig != nil {
907903
gs, err := c.GRPCConfig.Build()
908904
if err != nil {

0 commit comments

Comments
 (0)