-
Notifications
You must be signed in to change notification settings - Fork 50
Open
Labels
bugSomething isn't workingSomething isn't workingenhancementNew feature or requestNew feature or requestmoduleTopic: The minecraft-servers moduleTopic: The minecraft-servers module
Description
I see the code:
{
assertion =
let
serverPorts = mapAttrsToList
(name: conf: conf.serverProperties.server-port or 25565)
(filterAttrs (_: cfg: cfg.openFirewall) servers);
counts = map (port: count (x: x == port) serverPorts) (unique serverPorts);
in
lib.all (x: x == 1) counts;
message = "Multiple servers are set to use the same port. Change one to use a different port.";
}
I haven't tested it, but this looks very much like you can't have multiple servers using the same server-port even if they have different server-ip values.
Or Maybe it just means you can't use openFirewall
with such configs. Still trying to understand this logic.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingenhancementNew feature or requestNew feature or requestmoduleTopic: The minecraft-servers moduleTopic: The minecraft-servers module