mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-26 14:54:12 -04:00
Allow disabling auto name verification for LAN IPs
This commit is contained in:
parent
b77da60b00
commit
151b75a351
@ -43,7 +43,7 @@ namespace MCGalaxy.Authentication
|
|||||||
if (auth.Verify(p, mppass)) return true;
|
if (auth.Verify(p, mppass)) return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
return !Server.Config.VerifyNames || IPUtil.IsPrivate(p.IP);
|
return !Server.Config.VerifyNames || (IPUtil.IsPrivate(p.IP) && !Server.Config.VerifyLanIPs);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -160,6 +160,8 @@ namespace MCGalaxy
|
|||||||
public List<string> DisabledModules = new List<string>();
|
public List<string> DisabledModules = new List<string>();
|
||||||
[ConfigTimespan("death-invulnerability-cooldown", "Other", 2, false)]
|
[ConfigTimespan("death-invulnerability-cooldown", "Other", 2, false)]
|
||||||
public TimeSpan DeathCooldown = TimeSpan.FromSeconds(2);
|
public TimeSpan DeathCooldown = TimeSpan.FromSeconds(2);
|
||||||
|
[ConfigBool("verify-lan-ips", "Other", false)]
|
||||||
|
public bool VerifyLanIPs = false;
|
||||||
|
|
||||||
[ConfigBool("irc", "IRC bot", false)]
|
[ConfigBool("irc", "IRC bot", false)]
|
||||||
public bool UseIRC = false;
|
public bool UseIRC = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user