X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2FIP_Mixin.pm;h=1967ccd573399c618234ca37df6f658e1dcc2a2e;hp=b68b0b6241a6cbfe527058b30a32da0a6537dfa3;hb=20f03d52cc6c930f610c0b4466eeeeda54fdbb40;hpb=04c717c096f556a9ba0e8c4a137e867029c78a1b diff --git a/FS/FS/IP_Mixin.pm b/FS/FS/IP_Mixin.pm index b68b0b624..1967ccd57 100644 --- a/FS/FS/IP_Mixin.pm +++ b/FS/FS/IP_Mixin.pm @@ -94,6 +94,10 @@ sub ip_check { $self->ip_addr(''); } + # Will strip extraneous leading zeros from ip adddresses + # e.g. 10.0.022.220 corrected to 10.0.22.220 + $self->ut_ip46n('ip_addr'); + if ( $self->ip_addr and !$self->router and $self->conf->exists('auto_router') ) {