use addr format to check net protcol, not config