remove any leading ::ffff: on ipv4 addresses
[spider.git] / techdoc / protocol.pod
index d6b4a7ee475cdc0891f15f4092bd7b285dc7452c..426241a4efb68f25e54352c7633b7a038cf8a974 100644 (file)
@@ -251,7 +251,7 @@ that are concatenated with a sequence number (0-65535)
 
 The date portion is constructed as:
 
-  my $date = ((((gmtime)[3] < 1) | $ntpflag) < 18) |  (time % 86400);
+  my $date = ((((gmtime)[3] << 1) | $ntpflag) << 18) |  (time % 86400);
 
 The sequence number is simply an unsigned short (or 16 bit) number
 starting at 0.