mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 18:54:09 -04:00
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:
parent
9b0ecef5da
commit
df9c6fe767
@ -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'
|
||||
|
||||
|
@ -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')
|
||||
|
Loading…
x
Reference in New Issue
Block a user