sks-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Sks-devel] Re: IPv6 SKS Pool


From: Kiss Gabor (Bitman)
Subject: Re: [Sks-devel] Re: IPv6 SKS Pool
Date: Sun, 26 Oct 2008 09:41:06 +0100 (CET)
User-agent: Alpine 1.10 (DEB 962 2008-03-14)

> Status is currently BETA on ipv6, so please come with comments. IPv6
> support will be added to keys.kfwebs.net and possibly keys2.kfwebs.net
> over the next couple of weeks as well.

Hi, folks,

I played with IPv6 a bit. This rude patch below allows daemons to listen
on IPv6 sockets too:

--- sks-1.1.0-orig/eventloop.ml     2008-05-29 23:44:00.000000000 +0200
+++ sks-1.1.0/eventloop.ml      2008-10-25 18:02:02.607764916 +0200
@@ -122,9 +122,7 @@
 let create_sock addr = 
   try
     let domain = 
-      match addr with 
-         ADDR_UNIX _ -> PF_UNIX 
-       | ADDR_INET (_,_) -> PF_INET in
+        domain_of_sockaddr addr in
     let sock =
       socket ~domain ~kind:SOCK_STREAM ~protocol:0 in
     setsockopt sock SO_REUSEADDR true;

Config file have to contain something like this:

recon_address: ::
hkp_address: ::

So no tricky port redirections or proxy servers needed. 

Full IPv6 support requires more work. Especially DNS lookups
have to be rewritten. Unfortunately I "don't speak" Caml at all. :)

Gabor
keys.niif.hu




reply via email to

[Prev in Thread] Current Thread [Next in Thread]