fix unsupported addrtype: undefined