support full urls (with eg tcp:// prefix)

This commit is contained in:
Ethan Buchman
2016-08-10 01:12:01 -04:00
parent dea910cd3e
commit 479510be0e
5 changed files with 65 additions and 32 deletions

View File

@ -13,8 +13,8 @@ import (
// Client and Server should work over tcp or unix sockets
var (
tcpAddr = "0.0.0.0:46657"
unixAddr = "/tmp/go-rpc.sock" // NOTE: must remove file for test to run again
tcpAddr = "tcp://0.0.0.0:46657"
unixAddr = "unix:///tmp/go-rpc.sock" // NOTE: must remove file for test to run again
websocketEndpoint = "/websocket/endpoint"
)