mirror of
https://github.com/mpolden/echoip.git
synced 2024-11-13 00:42:46 +01:00
Merge pull request #12 from porjo/master
Link to IPv4 page from IPv6 page
This commit is contained in:
commit
f70690f4b4
11
index.html
11
index.html
@ -24,6 +24,13 @@
|
|||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
#footer {
|
||||||
|
margin-top: 10px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
#footer a {
|
||||||
|
margin: 0 10px;
|
||||||
|
}
|
||||||
.ip {
|
.ip {
|
||||||
border: 1px solid #cbcbcb;
|
border: 1px solid #cbcbcb;
|
||||||
background: #f2f2f2;
|
background: #f2f2f2;
|
||||||
@ -66,6 +73,10 @@
|
|||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
<div id="footer">
|
||||||
|
<a href="http://v4.ifconfig.co">IPv4 page</a>
|
||||||
|
<a href="http://v6.ifconfig.co">IPv6 page</a>
|
||||||
|
</div>
|
||||||
<a href="https://github.com/martinp/ifconfigd"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub"></a>
|
<a href="https://github.com/martinp/ifconfigd"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub"></a>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
6
main.go
6
main.go
@ -13,13 +13,13 @@ func main() {
|
|||||||
var opts struct {
|
var opts struct {
|
||||||
DBPath string `short:"f" long:"file" description:"Path to GeoIP database" value-name:"FILE" default:""`
|
DBPath string `short:"f" long:"file" description:"Path to GeoIP database" value-name:"FILE" default:""`
|
||||||
Listen string `short:"l" long:"listen" description:"Listening address" value-name:"ADDR" default:":8080"`
|
Listen string `short:"l" long:"listen" description:"Listening address" value-name:"ADDR" default:":8080"`
|
||||||
CORS bool `short:"x" long:"cors" description:"Allow requests from other domains" default:"false"`
|
CORS bool `short:"x" long:"cors" description:"Allow requests from other domains"`
|
||||||
ReverseLookup bool `short:"r" long:"reverselookup" description:"Perform reverse hostname lookups" default:"false"`
|
ReverseLookup bool `short:"r" long:"reverselookup" description:"Perform reverse hostname lookups"`
|
||||||
Template string `short:"t" long:"template" description:"Path to template" default:"index.html"`
|
Template string `short:"t" long:"template" description:"Path to template" default:"index.html"`
|
||||||
}
|
}
|
||||||
_, err := flags.ParseArgs(&opts, os.Args)
|
_, err := flags.ParseArgs(&opts, os.Args)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
os.Exit(1)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
var a *api.API
|
var a *api.API
|
||||||
|
Loading…
Reference in New Issue
Block a user