mirror of
				https://gitlab.com/freepascal.org/fpc/source.git
				synced 2025-10-31 02:51:37 +01:00 
			
		
		
		
	* Fix wrong lookup address order in TInetSocket
git-svn-id: trunk@17471 -
This commit is contained in:
		
							parent
							
								
									7de8972e5c
								
							
						
					
					
						commit
						2ab9fe2775
					
				| @ -143,6 +143,8 @@ type | |||||||
|   end; |   end; | ||||||
| {$endif} | {$endif} | ||||||
| 
 | 
 | ||||||
|  |   { TInetSocket } | ||||||
|  | 
 | ||||||
|   TInetSocket = Class(TSocketStream) |   TInetSocket = Class(TSocketStream) | ||||||
|   Private |   Private | ||||||
|     FHost : String; |     FHost : String; | ||||||
| @ -152,7 +154,6 @@ type | |||||||
|   Public |   Public | ||||||
|     Constructor Create(ASocket : longint); Override; Overload; |     Constructor Create(ASocket : longint); Override; Overload; | ||||||
|     Constructor Create(const AHost: String; APort: Word); Overload; |     Constructor Create(const AHost: String; APort: Word); Overload; | ||||||
|     Destructor destroy; override; |  | ||||||
|     Property Host : String Read FHost; |     Property Host : String Read FHost; | ||||||
|     Property Port : Word Read FPort; |     Property Port : Word Read FPort; | ||||||
|   end; |   end; | ||||||
| @ -576,7 +577,7 @@ begin | |||||||
|       try |       try | ||||||
|         If Not NameLookup(FHost) then |         If Not NameLookup(FHost) then | ||||||
|           raise ESocketError.Create(seHostNotFound, [FHost]); |           raise ESocketError.Create(seHostNotFound, [FHost]); | ||||||
|         A:=HostAddress; |         A:=NetHostAddress; | ||||||
|       finally |       finally | ||||||
|         free; |         free; | ||||||
|       end; |       end; | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 michael
						michael