Add a tweak that can be used to have the calibre content server listen for IPv6 connections. Fixes #743486 (library/server/ doesn't listen on ipv6)

This commit is contained in:
Kovid Goyal 2011-03-27 20:18:52 -06:00
parent 9b0ecef5da
commit df9c6fe767
2 changed files with 9 additions and 1 deletions

View File

@ -363,3 +363,11 @@ maximum_cover_size = (1200, 1600)
# the files will be sent to the location with the most free space.
send_news_to_device_location = "main"
#: What interfaces should the content server listen on
# By default, the calibre content server listens on '0.0.0.0' which means that it
# accepts IPv4 connections on all interfaces. You can change this to, for
# example, '127.0.0.1' to only listen for connections from the local machine, or
# to '::' to listen to all incoming IPv6 and IPv4 connections (this may not
# work on all operating systems)
server_listen_on = '0.0.0.0'

View File

@ -10,7 +10,7 @@ import os
from calibre.utils.config import Config, StringConfig, config_dir, tweaks
listen_on = '0.0.0.0'
listen_on = tweaks['server_listen_on']
log_access_file = os.path.join(config_dir, 'server_access_log.txt')