0
0
Fork 0
mirror of https://github.com/schollz/croc.git synced 2025-10-11 13:21:00 +02:00

not quite working

This commit is contained in:
Zack Scholl 2018-06-30 07:02:04 -07:00
parent 919de910cb
commit adff8400be
2 changed files with 3 additions and 2 deletions

View file

@ -304,7 +304,8 @@ func (c *Croc) dialUp() (err error) {
log.Debug("dialing up")
}
log.Debugf("connecting to %s", "localhost:"+port)
connection, err := net.Dial("tcp", "localhost:"+port)
address := strings.Split(strings.Split(c.WebsocketAddress, "://")[1], ":")[0]
connection, err := net.Dial("tcp", address+":"+port)
if err != nil {
errorChan <- err
return