mirror of
https://github.com/tendermint/tendermint.git
synced 2026-07-20 15:02:33 +00:00
support unix domain websockets
This commit is contained in:
+1
-1
@@ -86,7 +86,7 @@ type WSRPCContext struct {
|
||||
// If tcp, must specify the port; `0.0.0.0` will return incorrectly as "unix" since there's no port
|
||||
func SocketType(listenAddr string) string {
|
||||
socketType := "unix"
|
||||
if len(strings.Split(listenAddr, ":")) == 2 {
|
||||
if len(strings.Split(listenAddr, ":")) >= 2 {
|
||||
socketType = "tcp"
|
||||
}
|
||||
return socketType
|
||||
|
||||
Reference in New Issue
Block a user