diff options
Diffstat (limited to 'opentracker.conf.sample')
| -rw-r--r-- | opentracker.conf.sample | 28 |
1 files changed, 20 insertions, 8 deletions
diff --git a/opentracker.conf.sample b/opentracker.conf.sample index 054e405..4adb736 100644 --- a/opentracker.conf.sample +++ b/opentracker.conf.sample | |||
| @@ -7,14 +7,8 @@ | |||
| 7 | # If no listen option is given (here or on the command line), opentracker | 7 | # If no listen option is given (here or on the command line), opentracker |
| 8 | # listens on 0.0.0.0:6969 tcp and udp. | 8 | # listens on 0.0.0.0:6969 tcp and udp. |
| 9 | # | 9 | # |
| 10 | # The next variable determines if udp sockets are handled in the event | 10 | # Addresses are collected while this file is read and bound afterwards, |
| 11 | # loop (set it to 0, the default) or are handled in blocking reads in | 11 | # so the order of the statements below does not matter. |
| 12 | # dedicated worker threads. You have to set this value before the | ||
| 13 | # listen.tcp_udp or listen.udp statements before it takes effect, but you | ||
| 14 | # can re-set it for each listen statement. Normally you should keep it at | ||
| 15 | # the top of the config file. | ||
| 16 | # | ||
| 17 | # listen.udp.workers 4 | ||
| 18 | # | 12 | # |
| 19 | # listen.tcp_udp 0.0.0.0 | 13 | # listen.tcp_udp 0.0.0.0 |
| 20 | # listen.tcp_udp 192.168.0.1:80 | 14 | # listen.tcp_udp 192.168.0.1:80 |
| @@ -25,6 +19,24 @@ | |||
| 25 | # listen.tcp 0.0.0.0 | 19 | # listen.tcp 0.0.0.0 |
| 26 | # listen.udp 192.168.0.1:6969 | 20 | # listen.udp 192.168.0.1:6969 |
| 27 | # | 21 | # |
| 22 | # A listen statement takes options after the address: | ||
| 23 | # | ||
| 24 | # workers=<count> handle this udp socket in blocking reads in that | ||
| 25 | # many dedicated worker threads instead of in the | ||
| 26 | # event loop. Ignored for tcp. | ||
| 27 | # shared allow another process to bind the same address and | ||
| 28 | # let the kernel share the traffic. Only useful if you | ||
| 29 | # deliberately run a second tracker there. | ||
| 30 | # | ||
| 31 | # listen.udp 10.0.0.5:6969 workers=4 shared | ||
| 32 | # | ||
| 33 | # The two statements below set defaults for every listen statement in | ||
| 34 | # this file that does not name the option itself. They may appear | ||
| 35 | # anywhere. | ||
| 36 | # | ||
| 37 | # listen.udp.workers 4 | ||
| 38 | # listen.shared 1 | ||
| 39 | # | ||
| 28 | # Note, that using 0.0.0.0 for udp sockets may yield surprising results. | 40 | # Note, that using 0.0.0.0 for udp sockets may yield surprising results. |
| 29 | # An answer packet sent on that socket will not necessarily have the | 41 | # An answer packet sent on that socket will not necessarily have the |
| 30 | # source address that the requesting client may expect, but any address | 42 | # source address that the requesting client may expect, but any address |
