wok diff gajim/stuff/host_srv.patch @ rev 24596

updated gftp (2.0.19 -> 2.9.1b)
author Hans-G?nter Theisgen
date Tue Mar 01 15:53:52 2022 +0100 (2022-03-01)
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 Mar 01 15:53:52 2022 +0100
     1.3 @@ -0,0 +1,25 @@
     1.4 +--- gajim-0.12.3/src/common/nslookup.py.orig	Sun Jun 28 13:34:21 2009
     1.5 ++++ gajim-0.12.3/src/common/nslookup.py	Sun Jun 28 13:35:23 2009
     1.6 +@@ -123,11 +123,11 @@
     1.7 + 				line = helpers.decode_string(line)
     1.8 + 				domain = ufqdn
     1.9 + 			if domain:
    1.10 +-				rest = line[len(domain):].split('=')
    1.11 ++				rest = line[len(domain):].split('record')
    1.12 + 				if len(rest) != 2:
    1.13 + 					continue
    1.14 + 				answer_type, props_str = rest
    1.15 +-				if answer_type.strip() != 'service':
    1.16 ++				if answer_type.strip() != 'has SRV':
    1.17 + 					continue
    1.18 + 				props = props_str.strip().split(' ')
    1.19 + 				if len(props) < 4:
    1.20 +@@ -296,7 +296,7 @@
    1.21 + 			return
    1.22 + 	
    1.23 + 	def _compose_command_args(self):
    1.24 +-		return ['nslookup', '-type=' + self.type , self.host]
    1.25 ++		return ['host', '-t ' + self.type , self.host]
    1.26 + 	
    1.27 + 	def _return_result(self):
    1.28 + 		if self.result_handler: