Skip to content

Commit

Permalink
auth
Browse files Browse the repository at this point in the history
  • Loading branch information
bmizerany committed Dec 20, 2011
1 parent 3754661 commit 9654a4a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ Or clone this repo and build with Go weekly/weekly.2011-11-18 or later.
$ noeq
140193482529570816

## ENVIRONMENT

If the server requires authentication, you'll need to set the `NOEQ_TOKEN` environment variable to match the servers when running this tool.

## See Also

<http://github.com/bmizerany/noeqd>
Expand Down
3 changes: 2 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"fmt"
"github.com/bmizerany/noeq.go"
"log"
"os"
)

// Flags
Expand All @@ -16,7 +17,7 @@ var (
func main() {
flag.Parse()

ne, err := noeq.New(*addr)
ne, err := noeq.New(os.Getenv("NOEQ_TOKEN"), *addr)
if err != nil {
log.Fatal(err)
}
Expand Down

0 comments on commit 9654a4a

Please sign in to comment.