*** empty log message ***
[python-rwhoisd.git] / rwhoisd / config.py
1 """Server global variables should be set here."""
2
3 import socket
4
5 ##### Editable Configuration Options
6
7 # the port to listen on.
8 port = 4321
9 # the interface address to bind to. "" means INADDR_ANY.
10 server_address = ""
11
12 # the hostname to advertise in the banner.
13 server_hostname = socket.getfqdn()
14
15 # setting this here sets a default session response limit.  0
16 # means no response limit.  This should be between min_limit and
17 # max_limit defined below.
18 default_limit = 0
19 # set this to the maximum value that the limit can be set to
20 max_limit = 256
21 # set this to the minimum value that the limit can be set to
22 # if this is zero, you are allowing clients to disable query limits.
23 min_limit = 0
24
25 # If this is true, some logging will be done to stdout.
26 verbose = False
27
28 #### END Editable Configuration Options
29
30 version = "0.1"
31 banner_string = "%%rwhois V-1.5 %s (python-rwhoisd %s)" % \
32                 (server_hostname, version)
33