소스 검색

first commit

tags/v1.0^0
Ramiro de Zavalia 5 년 전
부모
커밋
6e359059e6
1개의 변경된 파일22개의 추가작업 그리고 0개의 파일을 삭제
  1. 22
    0
      README.md

+ 22
- 0
README.md 파일 보기

@@ -1,2 +1,24 @@
# yourip

Simple web service that returns your own IP. Similar to http://ifconfig.me

You can specify the address to bind with the --addr parameter.

```
# ./yourip --help
Usage of ./yourip:
-addr string
local ip:port to bind (default ":8080")
```


When querying the service, you can get a JSON output using the /json path

Examples:

```
# curl 'http://127.0.0.1:3000/'
127.0.0.1
# curl 'http://127.0.0.1:3000/json'
{"ip":"127.0.0.1"}
```

Loading…
취소
저장