bugfix now SRV should work
This commit is contained in:
		
							parent
							
								
									268fba26b4
								
							
						
					
					
						commit
						f8ab62c2c4
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -70,9 +70,9 @@ class TCPsocket(PlugIn): | ||||||
|                 try: |                 try: | ||||||
|                     answers = [x for x in dns.resolver.query(query, 'SRV')] |                     answers = [x for x in dns.resolver.query(query, 'SRV')] | ||||||
|                     if answers: |                     if answers: | ||||||
|                         host = str (answers[0].target)[:-1] #remove last . |                         host = str (answers[0].target) | ||||||
|                         port = int (answers[0].port) |                         port = int (answers[0].port) | ||||||
|                     break |                         break | ||||||
|                 except: |                 except: | ||||||
|                     pass |                     pass | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue