From: beware Date: Tue, 11 Oct 2011 08:08:48 +0000 (+0000) Subject: fixed listen breaking on kernel compiled without ipv6 X-Git-Url: http://www.lcore.org/git/lcore.git/commitdiff_plain/e6290c8bee34fc9a6fdbce30a9dd85faffeaac5a fixed listen breaking on kernel compiled without ipv6 git-svn-id: file:///svnroot/lcore/trunk@103 b1de8a11-f9be-4011-bde0-cc7ace90066a --- diff --git a/lsocket.pas b/lsocket.pas index 642ec9a..72ef891 100755 --- a/lsocket.pas +++ b/lsocket.pas @@ -419,6 +419,7 @@ begin if (addr = '::') and (origaddr = '') and (fdhandlein < 0) then begin {writeln('failed to create an IPV6 socket with error ',socketerror,'. trying to create an IPV4 one instead');} addr := '0.0.0.0'; + biniptemp := ipstrtobinf(addr); fdhandlein := socket(PF_INET,socktype,0); end; {$endif}