domain cleanup excuded if IP address

Domain variable cleanup, checking from nonwww and https is excluded if it's IP address. Before it add's http:// to IP and made IP lookup impossible.