Parse IP address to net.IP

This commit is contained in:
Martin Polden
2012-11-19 23:54:20 +01:00
parent f1a8819fa7
commit 459032d089
2 changed files with 5 additions and 4 deletions

View File

@@ -8,6 +8,6 @@
</head>
<body>
<h1>What is my IP address?</h1>
<p>Your IP address is <strong>{{ .Host }}</strong></p>
<p>Your IP address is <strong>{{ .IP }}</strong></p>
</body>
</html>