* Router:

- Auto-hidden mode for bad countries
    - Don't put addresses in our RouterInfo when hidden
This commit is contained in:
zzz
2012-01-10 00:05:17 +00:00
parent c6e6a9d36e
commit 4ad6d699e7
9 changed files with 123 additions and 6 deletions

View File

@ -140,7 +140,8 @@ public class ConfigNetHandler extends FormHandler {
if (!_ratesOnly) {
// IP Settings
String oldUdp = _context.getProperty(UDPTransport.PROP_SOURCES, UDPTransport.DEFAULT_SOURCES);
String oldUdp = _context.getProperty(UDPTransport.PROP_SOURCES,
_context.router().isHidden() ? "hidden" : UDPTransport.DEFAULT_SOURCES);
String oldUHost = _context.getProperty(UDPTransport.PROP_EXTERNAL_HOST, "");
if (_udpAutoIP != null) {
String uhost = "";