wok diff gajim/stuff/host_srv.patch @ rev 3545
Add gajim
author | Liu Peng <rocky@slitaz.org> |
---|---|
date | Tue Jun 23 12:11:03 2009 +0800 (2009-06-23) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/gajim/stuff/host_srv.patch Tue Jun 23 12:11:03 2009 +0800 1.3 @@ -0,0 +1,26 @@ 1.4 +use host to resolve domain 1.5 +--- gajim-0.12.1/src/common/nslookup.py.orig 2009-04-18 02:11:36.000000000 +0800 1.6 ++++ gajim-0.12.1/src/common/nslookup.py 2009-04-18 02:14:37.000000000 +0800 1.7 +@@ -123,11 +123,11 @@ 1.8 + line = helpers.decode_string(line) 1.9 + domain = ufqdn 1.10 + if domain: 1.11 +- rest = line[len(domain):].split('=') 1.12 ++ rest = line[len(domain):].split('record') 1.13 + if len(rest) != 2: 1.14 + continue 1.15 + answer_type, props_str = rest 1.16 +- if answer_type.strip() != 'service': 1.17 ++ if answer_type.strip() != 'has SRV': 1.18 + continue 1.19 + props = props_str.strip().split(' ') 1.20 + if len(props) < 4: 1.21 +@@ -296,7 +296,7 @@ 1.22 + return 1.23 + 1.24 + def _compose_command_args(self): 1.25 +- return ['nslookup', '-type=' + self.type , self.host] 1.26 ++ return ['host', '-t ' + self.type , self.host] 1.27 + 1.28 + def _return_result(self): 1.29 + if self.result_handler: