Don't crash
This commit is contained in:
		| @@ -121,7 +121,8 @@ func (r *connReader) handleDataPacket( | |||||||
|  |  | ||||||
| 	if h.DestIP == r.localIP { | 	if h.DestIP == r.localIP { | ||||||
| 		if _, err := r.iface.Write(data); err != nil { | 		if _, err := r.iface.Write(data); err != nil { | ||||||
| 			log.Fatalf("Failed to write to interface: %v", err) | 			// Could be invalid data from peer. Don't crash. | ||||||
|  | 			log.Printf("Failed to write to interface: %v", err) | ||||||
| 		} | 		} | ||||||
| 		return | 		return | ||||||
| 	} | 	} | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user