diff --git a/views/index.tpl b/views/index.tpl index 346f622..d0f3245 100644 --- a/views/index.tpl +++ b/views/index.tpl @@ -52,7 +52,7 @@ @@ -104,27 +104,27 @@

Command Line Interface

-

What Is My IP Address? - Yet Another ifconfig

+

What Is My IP Address? - Yet Another ifconfig

- - - - - - - - - - - - - - - + + + + + + + + + + + + + + - +
$ curl whois.envs.net{{.IP}}
$ curl whois.envs.net/ip{{.IP}}
$ curl whois.envs.net/host{{.Host}}
$ curl whois.envs.net/ua{{.UserAgent}}
$ curl whois.envs.net/port{{.Port}}
$ curl whois.envs.net/lang{{.Lang}}
$ curl whois.envs.net/keepalive{{.Keepalive}}
$ curl whois.envs.net/connection{{.Connection}}
$ curl whois.envs.net/encoding{{.Encoding}}
$ curl whois.envs.net/mime{{.Mime}}
$ curl whois.envs.net/charset{{.Charset}}
$ curl whois.envs.net/via{{.Via}}
$ curl whois.envs.net/forwarded{{.Forwarded}}
$ curl whois.envs.net/allip_addr: {{.IP}}
remote_host: {{.Host}}
user_agent: {{.UserAgent}}
port: {{.Port}}
lang: {{.Lang}}
connection: {{.Connection}}
keep_alive: {{.Keepalive}}
encoding: {{.Encoding}}
mime: {{.Mime}}
charset: {{.Charset}}
via: {{.Via}}
forwarded: {{.Forwarded}}
$ curl whois.envs.net/all.xml<info>
    <charset>{{.Charset}}</charset>
    <connection>{{.Connection}}</connection>
    <encoding>{{.Encoding}}</encoding>
    <forwarded>{{.Forwarded}}</forwarded>
    <ip_addr>{{.IP}}</ip_addr>
    <keep_alive>{{.Keepalive}}</keep_alive>
    <lang>{{.Lang}}</lang>
    <mime>{{.Mime}}</mime>
    <port>{{.Port}}</port>
    <remote_host>{{.Host}}</remote_host>
    <user_agent>{{.UserAgent}}</user_agent>
    <via>{{.Via}}</via>
+
$ curl ip.envs.net{{.IP}}
$ curl ip.envs.net/ip{{.IP}}
$ curl ip.envs.net/host{{.Host}}
$ curl ip.envs.net/ua{{.UserAgent}}
$ curl ip.envs.net/port{{.Port}}
$ curl ip.envs.net/lang{{.Lang}}
$ curl ip.envs.net/keepalive{{.Keepalive}}
$ curl ip.envs.net/connection{{.Connection}}
$ curl ip.envs.net/encoding{{.Encoding}}
$ curl ip.envs.net/mime{{.Mime}}
$ curl ip.envs.net/charset{{.Charset}}
$ curl ip.envs.net/via{{.Via}}
$ curl ip.envs.net/forwarded{{.Forwarded}}
$ curl ip.envs.net/allip_addr: {{.IP}}
remote_host: {{.Host}}
user_agent: {{.UserAgent}}
port: {{.Port}}
lang: {{.Lang}}
connection: {{.Connection}}
keep_alive: {{.Keepalive}}
encoding: {{.Encoding}}
mime: {{.Mime}}
charset: {{.Charset}}
via: {{.Via}}
forwarded: {{.Forwarded}}
$ curl ip.envs.net/all.xml<info>
    <charset>{{.Charset}}</charset>
    <connection>{{.Connection}}</connection>
    <encoding>{{.Encoding}}</encoding>
    <forwarded>{{.Forwarded}}</forwarded>
    <ip_addr>{{.IP}}</ip_addr>
    <keep_alive>{{.Keepalive}}</keep_alive>
    <lang>{{.Lang}}</lang>
    <mime>{{.Mime}}</mime>
    <port>{{.Port}}</port>
    <remote_host>{{.Host}}</remote_host>
    <user_agent>{{.UserAgent}}</user_agent>
    <via>{{.Via}}</via>
</info>
$ curl https://whois.envs.net/all.json{"connection":"{{.Connection}}","ip_addr":"{{.IP}}","lang":"{{.Lang}}","remote_host":"{{.Host}}","user_agent":"{{.UserAgent}}","charset":"{{.Charset}}","port":"{{.Port}}","via":"{{.Via}}","forwarded":"{{.Forwarded}}","mime":"{{.Mime}}","keep_alive":"{{.Keepalive}}","encoding":"{{.Encoding}}"}
$ curl https://ip.envs.net/all.json{"connection":"{{.Connection}}","ip_addr":"{{.IP}}","lang":"{{.Lang}}","remote_host":"{{.Host}}","user_agent":"{{.UserAgent}}","charset":"{{.Charset}}","port":"{{.Port}}","via":"{{.Via}}","forwarded":"{{.Forwarded}}","mime":"{{.Mime}}","keep_alive":"{{.Keepalive}}","encoding":"{{.Encoding}}"}
- +