mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
Merge pull request #4445 from wanyaoqi/bugfix/wyq/fix-dhcp-server
bugfix: not return on recv packet failed
This commit is contained in:
@@ -104,7 +104,8 @@ func (s *DHCPServer) serveDHCP(handler DHCPHandler) error {
|
||||
for {
|
||||
pkt, addr, mac, intf, err := s.conn.RecvDHCP()
|
||||
if err != nil {
|
||||
return fmt.Errorf("Receiving DHCP packet: %s", err)
|
||||
log.Errorf("Receiving DHCP packet: %s", err)
|
||||
continue
|
||||
}
|
||||
// if intf == nil {
|
||||
// return fmt.Errorf("Received DHCP packet with no interface information (this is a violation of dhcp4.Conn's contract)")
|
||||
|
||||
Reference in New Issue
Block a user