Skip to content

Commit

Permalink
adding json fields to Port
Browse files Browse the repository at this point in the history
  • Loading branch information
opalmer committed Apr 27, 2017
1 parent c05c161 commit cf8d33f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ports.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ type Port struct {
// Public is the publicly facing port that you wish to expose
// the Private port on. Note, this may be `RandomPort` if you
// wish to expose a random port instead of a specific port.
Public uint16
Public uint16 `json:"port"`

// Address is the IP address to expose the port mapping
// on. By default, 0.0.0.0 will be used.
Address string
Address string `json:"address"`

// Protocol is the network protocol to expose.
Protocol Protocol
Protocol Protocol `json:"protocol"`
}

// Port converts the struct into a nat.Port
Expand Down

0 comments on commit cf8d33f

Please sign in to comment.