Alexander GQ Gerasiov
a0f5ffa99a
postsrsd.c: Close all file descriptors on process start.
Signed-off-by: Alexander GQ Gerasiov <gq@cs.msu.su >
пре 7 година
Gedalya
54e5923379
Make hash length and hash minimum length configurable
пре 8 година
Matthew Bowman
fc2ba94684
add the ability to set the socket listen address
пре 8 година
Timo Röhling
a5068306f1
1.4
пре 8 година
Timo Röhling
af7a24ac27
Add dual stack support
Closes #46
пре 8 година
Timo Röhling
e2ed71fa64
Fix comment
пре 8 година
Timo Röhling
d549b3ff35
1.3
пре 9 година
Timo Röhling
8653cca9b1
A few corrections
Use char instead of char* for the single character and don't do this
weird casting thing where a char gets stored in the pointer.
пре 9 година
nichivo
1d7e242fa6
Add an argument for the first separator character after SRS0 and SRS1. The default is now = instead of +
пре 9 година
bjoe2k4
1e2f2d535d
Revert "Bind to both ipv4 and ipv6 by default."
This reverts commit cdb223542a .
пре 9 година
bjoe2k4
e12167c202
Read config from environment
пре 9 година
bjoe2k4
cdb223542a
Bind to both ipv4 and ipv6 by default.
пре 9 година
bjoe2k4
10e8b8214d
Remove addrinfo flags
Remove flags since they require the network to be up and routable for no reason.
пре 9 година
Timo Röhling
51e9288c93
1.2
пре 10 година
Timo Röhling
0442b31227
Fix more warnings
пре 10 година
Timo Röhling
1493d5f38c
Bind IPv4 ports by default
пре 10 година
Timo Röhling
a4a53c7b9f
Flush before waiting for new input, not after
пре 10 година
Timo Röhling
859796b126
Workaround for Solaris libc
The Solaris libc has some issues with alternating input and output
on sockets passed to fdopen(). Apparently there is a shared buffer
which has to be emptied, either by fseek() or fflush(), whenever
the direction of the data flow changes.
пре 10 година
Timo Röhling
70878f964c
Whitespace fix
пре 10 година
Timo Röhling
a534a528f7
Check for headers which may or may not be available
пре 10 година
TomBoehm
5b08179493
Add preliminary Mac OS X support
пре 10 година
Timo Röhling
f430c83b82
Load timezone info before chroot
Fixes #13
пре 10 година
Chris Butler
6abd042ee3
Ignore EINTR errors from main poll() loop
When trying to connect the strace tool to the daemon's main process, the
daemon would die because strace interrupted the poll() causing it to
return EINTR.
It should be safe to ignore EINTR errors from poll in this case. Either
the received signal will be otherwise ignored by the process, or it will
cause it to terminate.
пре 10 година
Chris Butler
0fc199d5bc
Close the listen sockets in child processes
By keeping the listen sockets open, the children were preventing the
daemon from being restarted cleanly. Once the child has forked these
listen sockets are no longer needed by that process, so can be closed.
пре 10 година
Timo Röhling
4a3349d538
1.1
пре 10 година
Timo Röhling
ea35d05dcf
Check for extra command line arguments
Otherwise, excluded domains might be silently ignored.
пре 10 година
Timo Röhling
e915847e73
Do not show help on command line errors
This obfuscates the error message too much.
пре 10 година
Timo Röhling
45648f63df
Optionally exclude domains from address rewriting
Useful for subdomains which are handled by the same
mail server.
пре 11 година
Timo Röhling
ff33d043b9
Support for multiple secrets
The secrets file is now parsed line by line, and
each line (excluding CR and/or LF) is used as a secret.
Only the first secret is used for signing, but all
secrets are used for verification.
пре 11 година
Timo Röhling
521be6ecc3
Fix line indentation
This is purely cosmetic.
пре 11 година
Timo Röhling
37c6dc7b0d
Pacify C compiler
This eliminates a warning about a missing return
statement. The code was correct though, because
hex2num() is guarded by is_hexdigit().
пре 11 година
Timo Röhling
c29c38d622
Add chroot capability
пре 12 година
Timo Röhling
df7a3836c4
Added syslog output
пре 12 година
Timo Röhling
5d26960180
Fix special character escape
пре 12 година
Timo Röhling
35ec3e10a8
Initial commit
пре 12 година