Skip to content

Commit

Permalink
Transport: Remove GUN (an alias of gRPC)
Browse files Browse the repository at this point in the history
  • Loading branch information
RPRX committed Oct 18, 2024
1 parent 9bdf72d commit 8809cbd
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions infra/conf/transport_internet.go
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,7 @@ func (p TransportProtocol) Build() (string, error) {
return "websocket", nil
case "h2", "h3", "http":
return "http", nil
case "grpc", "gun":
case "grpc":
return "grpc", nil
case "httpupgrade":
return "httpupgrade", nil
Expand Down Expand Up @@ -807,7 +807,6 @@ type StreamConfig struct {
HTTPSettings *HTTPConfig `json:"httpSettings"`
SocketSettings *SocketConfig `json:"sockopt"`
GRPCConfig *GRPCConfig `json:"grpcSettings"`
GUNConfig *GRPCConfig `json:"gunSettings"`
HTTPUPGRADESettings *HttpUpgradeConfig `json:"httpupgradeSettings"`
SplitHTTPSettings *SplitHTTPConfig `json:"splithttpSettings"`
}
Expand Down Expand Up @@ -900,9 +899,6 @@ func (c *StreamConfig) Build() (*internet.StreamConfig, error) {
Settings: serial.ToTypedMessage(ts),
})
}
if c.GRPCConfig == nil {
c.GRPCConfig = c.GUNConfig
}
if c.GRPCConfig != nil {
gs, err := c.GRPCConfig.Build()
if err != nil {
Expand Down

0 comments on commit 8809cbd

Please sign in to comment.