Skip to content

Commit

Permalink
Change default port to 12111
Browse files Browse the repository at this point in the history
Port 6065 should have been relatively uncontentious, but just to try and
keep collisions to an absolute mininum, I picked an unassigned port from
this list [1] maintained by the IANA.

[1] https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml?&page=120
  • Loading branch information
brandur committed Jul 26, 2017
1 parent fe5f212 commit 40f5327
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ go get -u github.com/brandur/stripelocal
Run it:

``` sh
stripelocal -port 6065
stripelocal -port 12111
```

Then from another terminal:

``` sh
curl -i http://localhost:6065/v1/charges
curl -i http://localhost:12111/v1/charges
```

## Development
Expand Down
2 changes: 1 addition & 1 deletion goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ brew:
<array>
<string>#{opt_bin}/stripelocal</string>
<string>-port</string>
<string>6065</string>
<string>12111</string>
</array>
<key>RunAtLoad</key>
<true/>
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"github.com/brandur/stripelocal/spec"
)

const defaultPort = 6065
const defaultPort = 12111

// verbose tracks whether the program is operating in verbose mode
var verbose bool
Expand Down

0 comments on commit 40f5327

Please sign in to comment.