mirror of
https://github.com/soheilhy/cmux.git
synced 2026-08-05 11:44:11 +08:00
Add an example for recursive muxing
This commit is contained in:
@@ -43,7 +43,7 @@ func serveHTTPS(l net.Listener) {
|
||||
serveHTTP1(tlsl)
|
||||
}
|
||||
|
||||
// This is an example is serving HTTP and HTTPS on the same port.
|
||||
// This is an example for serving HTTP and HTTPS on the same port.
|
||||
func Example_bothHTTPAndHTTPS() {
|
||||
// Create the TCP listener.
|
||||
l, err := net.Listen("tcp", "127.0.0.1:50051")
|
||||
|
||||
Reference in New Issue
Block a user