mirror of
https://github.com/PretendoNetwork/SSSL-DNS.git
synced 2026-04-24 23:06:47 -05:00
added port warnings
This commit is contained in:
parent
a3391e5190
commit
e11448be88
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user