*** pure/c/pure-client.c.orig	Sat Nov 10 02:28:50 2001
--- pure/c/pure-client.c	Sat Nov 10 03:06:35 2001
***************
*** 13,20 ****
  	struct hostent* hp;
  
  	/* get IP address of peer */
! 	if ( !(hp = gethostbyname( peer->name )) ) return -1;
! 	peer->address = ntohl( ( (struct in_addr*)hp -> h_addr_list[0] ) -> s_addr );
  
  	/* make connection */
  	if ( ( sock = socket( AF_INET, SOCK_STREAM, 0 ) ) < 0 ) return -2;
--- 13,23 ----
  	struct hostent* hp;
  
  	/* get IP address of peer */
! 	if(strchr(peer->name, '.')) {
! 		if ( !(hp = gethostbyname( peer->name )) ) return -1;
! 		peer->address = ntohl( ( (struct in_addr*)hp -> h_addr_list[0] ) -> s_addr );
! 	} else
! 		peer->address = strtoul(peer->name, NULL, 0);
  
  	/* make connection */
  	if ( ( sock = socket( AF_INET, SOCK_STREAM, 0 ) ) < 0 ) return -2;
