Skip to content

Commit 20800e2

Browse files
authored
Update IPAddress.cpp
1 parent 26b6632 commit 20800e2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎api/IPAddress.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ IPAddress::IPAddress(uint8_t first_octet, uint8_t second_octet, uint8_t third_oc
3939
IPAddress::IPAddress(uint8_t o1, uint8_t o2, uint8_t o3, uint8_t o4, uint8_t o5, uint8_t o6, uint8_t o7, uint8_t o8, uint8_t o9, uint8_t o10, uint8_t o11, uint8_t o12, uint8_t o13, uint8_t o14, uint8_t o15, uint8_t o16) : _address{o1, o2, o3, o4, o5, o6, o7, o8, o9, o10, o11, o12, o13, o14, o15, o16}, _type(IPv6) {}
4040

4141
// IPv4 only
42-
IPAddress::IPAddress(uint32_t address)
42+
IPAddress::IPAddress(uint32_t address) : _type(IPv4)
4343
{
4444
// memcpy(raw_address(), &address, 4); // This method guarantees a defined behavior.
4545
// But lifetime started when:

0 commit comments

Comments
 (0)