wok-6.x view gajim/stuff/host_srv.patch @ rev 4185
tazbb: fix sort cook list
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Sep 23 08:28:30 2009 +0200 (2009-09-23) |
parents | |
children |
line source
1 --- gajim-0.12.3/src/common/nslookup.py.orig Sun Jun 28 13:34:21 2009
2 +++ gajim-0.12.3/src/common/nslookup.py Sun Jun 28 13:35:23 2009
3 @@ -123,11 +123,11 @@
4 line = helpers.decode_string(line)
5 domain = ufqdn
6 if domain:
7 - rest = line[len(domain):].split('=')
8 + rest = line[len(domain):].split('record')
9 if len(rest) != 2:
10 continue
11 answer_type, props_str = rest
12 - if answer_type.strip() != 'service':
13 + if answer_type.strip() != 'has SRV':
14 continue
15 props = props_str.strip().split(' ')
16 if len(props) < 4:
17 @@ -296,7 +296,7 @@
18 return
20 def _compose_command_args(self):
21 - return ['nslookup', '-type=' + self.type , self.host]
22 + return ['host', '-t ' + self.type , self.host]
24 def _return_result(self):
25 if self.result_handler: