File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 72
72
DHCP_SERVER_PORT = const (67 )
73
73
# DHCP Lease Time, in seconds
74
74
DEFAULT_LEASE_TIME = const (900 )
75
- BROADCAST_SERVER_ADDR = (( '255.255.255.255' ))
75
+ BROADCAST_SERVER_ADDR = '255.255.255.255'
76
76
77
77
# pylint: enable=bad-whitespace
78
78
_BUFF = bytearray (317 )
@@ -283,7 +283,7 @@ def request_dhcp_lease(self):
283
283
while self ._dhcp_state != STATE_DHCP_LEASED :
284
284
if self ._dhcp_state == STATE_DHCP_START :
285
285
self ._transaction_id += 1
286
- self ._sock .connect ((BROADCAST_SERVER_ADDR , DHCP_SERVER_PORT ))
286
+ self ._sock .connect ((( BROADCAST_SERVER_ADDR ) , DHCP_SERVER_PORT ))
287
287
self .send_dhcp_message (STATE_DHCP_DISCOVER ,
288
288
((time .monotonic () - start_time ) / 1000 ))
289
289
self ._dhcp_state = STATE_DHCP_DISCOVER
You can’t perform that action at this time.
0 commit comments