Skip to content

Commit

Permalink
typo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
YUNRU committed Jul 30, 2024
1 parent 63808fe commit 201d620
Show file tree
Hide file tree
Showing 4 changed files with 194 additions and 194 deletions.
4 changes: 2 additions & 2 deletions infra/conf/transport_internet.go
Original file line number Diff line number Diff line change
Expand Up @@ -260,9 +260,9 @@ func (c *SplitHTTPConfig) Build() (proto.Message, error) {
case "disabled", "off", "none":
muxProtobuf.Mode = splithttp.Multiplexing_DISABLED
case "prefer_reuse", "preferreuse", "prefer_existing", "preferexisting", "": // Default: Reuse existing connections before opening new ones
muxProtobuf.Mode = splithttp.Multiplexing_PREFRE_EXTISTING
muxProtobuf.Mode = splithttp.Multiplexing_PREFER_EXTISTING
case "prefer_new", "prefernew": // Open new connections until max limit, then reuse
muxProtobuf.Mode = splithttp.Multiplexing_PREFRE_NEW
muxProtobuf.Mode = splithttp.Multiplexing_PREFER_NEW
default:
return nil, errors.New("unsupported splithttp multiplexing mode: ", c.Mux.Mode)
}
Expand Down
Loading

0 comments on commit 201d620

Please sign in to comment.