Skip to content

Commit

Permalink
works with mosquitto
Browse files Browse the repository at this point in the history
  • Loading branch information
patilsnr committed Nov 13, 2023
1 parent c360052 commit 1767c44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scenarios/getting_started/go/getting_started.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func main() {
if cs.UseTls {
c.Conn = getTlsConnection(cs.CertFile, cs.KeyFile, cs.CaFile, cs.Hostname, cs.TcpPort)
} else {
conn, err := net.Dial("tcp", cs.Hostname)
conn, err := net.Dial("tcp", fmt.Sprintf("%s:%d", cs.Hostname, cs.TcpPort))
if err != nil {
panic(err)
}
Expand Down

0 comments on commit 1767c44

Please sign in to comment.