Parcourir la source

Use the IP address of the visitor as the default target

Baptiste Jonglez il y a 10 ans
Parent
commit
f6d524325a
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      templates/home.html

+ 1 - 1
templates/home.html

@@ -22,7 +22,7 @@ latency from various points in the network towards you.</p>
 <p>
 <form action="/submit" method="POST">
 <label for="target">Target:</label>
-<input type="text" name="target" id="target" /><br />
+<input type="text" name="target" id="target" value="{{ request.remote_addr }}"/><br />
 <input type="checkbox" id="public" name="public" />
 <label for="public">Public?</label><br />
 <input type="submit" value="Launch" />