Print string of id, instead of id
continuous-integration/drone/push Build is passing Details

This commit is contained in:
DutchEllie 2022-05-29 21:59:16 +02:00
parent 0bd424fb39
commit 33cb6a16f0
Signed by: DutchEllie
SSH Key Fingerprint: SHA256:UU8yhd1Bh8exU88ev0ej/Dm+CeyfR/ZIDRrpRfYdfbg
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ func run() {
} }
defer h1.Close() defer h1.Close()
// Print host ID to terminal // Print host ID to terminal
log.Printf("Host ID: %s\n", h1.ID()) log.Printf("Host ID: %s\n", h1.ID().String())
for _, addr := range h1.Addrs() { for _, addr := range h1.Addrs() {
fmt.Printf("Listening on: %s\n", addr.String()) fmt.Printf("Listening on: %s\n", addr.String())