From 7ffbd9d0e856f08619db9aa5c7a4cbff100d6758 Mon Sep 17 00:00:00 2001 From: Harald Barth Date: Thu, 5 Sep 2024 13:01:54 +0200 Subject: [PATCH] Use port variable --- WifiESP32.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WifiESP32.cpp b/WifiESP32.cpp index 83dd2e1..d44672a 100644 --- a/WifiESP32.cpp +++ b/WifiESP32.cpp @@ -265,7 +265,7 @@ bool WifiESP::setup(const char *SSid, if(!MDNS.begin(hostname)) { DIAG(F("Wifi setup failed to start mDNS")); } - if(!MDNS.addService("withrottle", "tcp", 2560)) { + if(!MDNS.addService("withrottle", "tcp", port)) { DIAG(F("Wifi setup failed to add withrottle service to mDNS")); }