add use ipv4 only method in UserAgent