def setMobileServiceProxyIp(self, proxyIp): if isinstance(proxyIp, str): ret, ip = str2intip(proxyIp) if not ret: raise YYPException("Invalid ip str %s" % proxyIp) proxyIp = ip self.mobileServiceProxyIp = proxyIp
def setMobileUserIp(self, userIp): if isinstance(userIp, str): ret, ip = str2intip(userIp) if not ret: raise YYPException("Invalid ip str %s" % userIp) userIp = ip self.mobileUserIp = userIp