mirror of
https://github.com/PretendoNetwork/SSSL-DNS.git
synced 2026-08-23 11:31:12 -05:00
added port warnings
This commit is contained in:
@@ -60,6 +60,19 @@ if (udpPort === 0 && tcpPort === 0) {
|
||||
process.exit();
|
||||
}
|
||||
|
||||
if (udpPort === tcpPort) {
|
||||
console.log(colors.bgRed('UDP and TCP ports cannot match'));
|
||||
process.exit();
|
||||
}
|
||||
|
||||
if (udpPort === 0) {
|
||||
console.log(colors.bgYellow('UDP port not set. One will be randomly assigned'));
|
||||
}
|
||||
|
||||
if (tcpPort === 0) {
|
||||
console.log(colors.bgYellow('TCP port not set. One will be randomly assigned'));
|
||||
}
|
||||
|
||||
const server = createServer({
|
||||
udp: true,
|
||||
tcp: true,
|
||||
|
||||
Reference in New Issue
Block a user