jerel / ecto_fields

Provides common fields for Ecto
MIT License
43 stars 7 forks source link

Use strict address parsing in EctoFields.IP.cast() #12

Closed tjamesking closed 2 years ago

tjamesking commented 2 years ago

Both EctoFields.IPv4 and EctoFields.IPv6 use strict address parsing in their cast, update EctoFields.IP to match. Prevents validation of plain integers and other obscure short-form IPv4 addresses.

jerel commented 2 years ago

@tjamesking thanks for this!