Skip to content

Commit

Permalink
Merge pull request #20 from storageos/feature/add-default-port
Browse files Browse the repository at this point in the history
add default port
  • Loading branch information
JoeReid authored Sep 12, 2017
2 parents 823afe4 + 7ac25ef commit 0f104d4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,11 @@ var (
// ErrInvalidVersion is returned when a versioned client was requested but no version specified.
ErrInvalidVersion = errors.New("invalid version")

// DefaultPort is the default API port
DefaultPort = "5705"

// DefaultHost is the default API host
DefaultHost = "tcp://localhost:5705"
DefaultHost = "tcp://localhost:" + DefaultPort
)

// APIVersion is an internal representation of a version of the Remote API.
Expand Down

0 comments on commit 0f104d4

Please sign in to comment.