Skip to content

Commit

Permalink
Merge pull request #130 from CiscoCloud/fix/canconnect-typo
Browse files Browse the repository at this point in the history
Fix typo in CanConnect
  • Loading branch information
langston-barrett committed Mar 7, 2016
2 parents 041b0e9 + a25ef09 commit 6619b6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion netstatus/netstatus.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ func CanConnect(host string, protocol string, timeout time.Duration) bool {
}
// if a duration was specified, use it
if nanoseconds > 0 {
conn, err = net.DialTimeout("protocol", timeoutAddress, timeout)
conn, err = net.DialTimeout(protocol, timeoutAddress, timeout)
if conn != nil {
defer conn.Close()
}
Expand Down

0 comments on commit 6619b6d

Please sign in to comment.