mirror of
https://github.com/esphome/esphome.git
synced 2025-09-16 10:12:21 +01:00
Rename WEBSERVER_PORT define to USE_WEBSERVER_PORT (#3102)
This commit is contained in:
@@ -16,8 +16,8 @@ namespace mdns {
|
||||
|
||||
static const char *const TAG = "mdns";
|
||||
|
||||
#ifndef WEBSERVER_PORT
|
||||
#define WEBSERVER_PORT 80 // NOLINT
|
||||
#ifndef USE_WEBSERVER_PORT
|
||||
#define USE_WEBSERVER_PORT 80 // NOLINT
|
||||
#endif
|
||||
|
||||
void MDNSComponent::compile_records_() {
|
||||
@@ -63,7 +63,7 @@ void MDNSComponent::compile_records_() {
|
||||
MDNSService service{};
|
||||
service.service_type = "_prometheus-http";
|
||||
service.proto = "_tcp";
|
||||
service.port = WEBSERVER_PORT;
|
||||
service.port = USE_WEBSERVER_PORT;
|
||||
this->services_.push_back(service);
|
||||
}
|
||||
#endif
|
||||
@@ -74,7 +74,7 @@ void MDNSComponent::compile_records_() {
|
||||
MDNSService service{};
|
||||
service.service_type = "_http";
|
||||
service.proto = "_tcp";
|
||||
service.port = WEBSERVER_PORT;
|
||||
service.port = USE_WEBSERVER_PORT;
|
||||
service.txt_records.push_back({"version", ESPHOME_VERSION});
|
||||
this->services_.push_back(service);
|
||||
}
|
||||
|
Reference in New Issue
Block a user