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

localhost->serverAddress

This commit is contained in:
Zack Scholl 2017-10-17 18:45:52 -06:00
parent df622467dd
commit c3956b059e

View file

@ -33,7 +33,7 @@ func runClient(connectionType string, codePhrase string) {
go func(id int) {
defer wg.Done()
port := strconv.Itoa(27001 + id)
connection, err := net.Dial("tcp", "localhost:"+port)
connection, err := net.Dial("tcp", serverAddress+":"+port)
if err != nil {
panic(err)
}