Skip to content

Commit 077b641

Browse files
committed
set connection type for EthernetConnectionHandler
1 parent 0bca667 commit 077b641

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/EthernetConnectionHandler.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ EthernetConnectionHandler::EthernetConnectionHandler(
4141
bool const keep_alive)
4242
: ConnectionHandler{keep_alive, NetworkAdapter::ETHERNET}
4343
{
44+
_settings.type = NetworkAdapter::ETHERNET;
4445
memset(_settings.eth.ip.dword, 0, sizeof(_settings.eth.ip.dword));
4546
memset(_settings.eth.dns.dword, 0, sizeof(_settings.eth.dns.dword));
4647
memset(_settings.eth.gateway.dword, 0, sizeof(_settings.eth.gateway.dword));
@@ -54,6 +55,7 @@ EthernetConnectionHandler::EthernetConnectionHandler(
5455
unsigned long const timeout, unsigned long const responseTimeout, bool const keep_alive)
5556
: ConnectionHandler{keep_alive, NetworkAdapter::ETHERNET}
5657
{
58+
_settings.type = NetworkAdapter::ETHERNET;
5759
fromIPAddress(ip, _settings.eth.ip);
5860
fromIPAddress(dns, _settings.eth.dns);
5961
fromIPAddress(gateway, _settings.eth.gateway);

0 commit comments

Comments
 (0)