separate ip v4 and v6 update fields / button, prepopulated with currently detected addresses, simplify host view
This commit is contained in:
parent
456f5fd2b7
commit
018f680a3f
@ -24,17 +24,21 @@
|
||||
<div class="col-lg-4">
|
||||
<h3>Update Nameserver Entry</h3>
|
||||
<p>Usually you configure your router to follow the dyndns2 protocol.
|
||||
But if you know what you are doing, and you want to update it by hand, you can do it here.
|
||||
But if you know what you are doing, and you want to update it manually, you can do it here.
|
||||
<br>
|
||||
We populated the input fields with your current remote IP addresses which we detected.
|
||||
We populated the input fields for the new addresses with your currently detected remote addresses.
|
||||
</p>
|
||||
<div class="form-group">
|
||||
<label>Current IPv4 address from master nameserver</label>
|
||||
<input class="form-control" type="text" id="current_ipv4" name="current_ipv4" value="{{ host.getIPv4 }}" disabled>
|
||||
<label>Set new IPv4 address</label>
|
||||
<input class="form-control" type="text" id="myipv4" name="myipv4" placeholder="give new ipv4 address" value="{{ request.session.ipv4 }}" required>
|
||||
</div>
|
||||
<button type="button" class="btn btn-primary" onclick="update_host_v4('{{ host.get_fqdn }}')">Apply</button> <span id="update_result_v4"></span>
|
||||
<p></p>
|
||||
<div class="form-group">
|
||||
<label>Current IPv6 address from master nameserver</label>
|
||||
<input class="form-control" type="text" id="current_ipv6" name="current_ipv6" value="{{ host.getIPv6 }}" disabled>
|
||||
<label>Set new IPv6 address</label>
|
||||
<input class="form-control" type="text" id="myipv6" name="myipv6" placeholder="give new ipv6 address" value="{{ request.session.ipv6 }}" required>
|
||||
</div>
|
||||
@ -61,25 +65,4 @@
|
||||
</script>
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="row">
|
||||
<div class="col-lg-6">
|
||||
<div class="well well-sm">
|
||||
<h3>General Information</h3>
|
||||
<p>We try to get your IP addresses through a trick. We host two fake images on a IPv4-only and a IPv6-only host and we can associate those with your session.
|
||||
If we find an IP address, we will update this information accordingly. This allows us to get your IPv4 address even when you are using IPv6 and vice versa.</p>
|
||||
<b>Your IPv4:</b> <span class="ipv4addr">{{ request.session.ipv4 }}</span> <br>
|
||||
<b>Your IPv6:</b> <span class="ipv6addr">{{ request.session.ipv6 }}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-6">
|
||||
<div class="well well-sm">
|
||||
<h3>Host Information</h3>
|
||||
<p>This information comes directly from the name server and shows the current IPs set for your host.</p>
|
||||
<b>Host IPv4:</b> <span class="ipv4addr">{{ host.getIPv4 }}</span> <br>
|
||||
<b>Host IPv6:</b> <span class="ipv6addr">{{ host.getIPv6 }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user