Listen on user-specified addresses
authorMegaBrutal <code+git@megabrutal.com>
Fri, 12 Oct 2018 06:05:25 +0000 (08:05 +0200)
committerMegaBrutal <code+git@megabrutal.com>
Fri, 12 Oct 2018 06:05:25 +0000 (08:05 +0200)
commitf70bfb8a7f2c72758be721b78a7e9f33321dca21
tree6248bbad386ab34b4829a96a6b13cb970ce7592c
parenta24c25ac25193f6cc296af1765fa25b68aa8525f
Listen on user-specified addresses

Configuration key ListenPort has been changed to ListenAddress.
Now it is possible to supply exact addresses to listen on instead
of all addresses (0.0.0.0). Backward compatibility is kept, so old
ListenPort values will still be interpreted (if no ListenAddress is
present).

ListenPort = 25 ==> ListenAddress = 0.0.0.0:25

Multiple listen addresses may be separated by commas, e.g.
ListenAddress = 192.168.1.161:25,127.0.0.1:225

Port 25 is implied when no port is specified for an address.

modified:   Common.pas
modified:   Listener.pas
modified:   MgSMTP.pas
modified:   Network.pas
Common.pas
Listener.pas
MgSMTP.pas
Network.pas