teamspeak: ipv6 support

Unlike the options descriptions the service was not listen to any
IPs because the address family was limited to ipv4.
This commit is contained in:
Jörg Thalheim 2018-10-20 13:09:41 +01:00
parent 0710c9fc25
commit 6c28dd858b
No known key found for this signature in database
GPG Key ID: B3F5D81B0C6967C4

View File

@ -41,8 +41,9 @@ in
}; };
voiceIP = mkOption { voiceIP = mkOption {
type = types.str; type = types.nullOr types.str;
default = "0.0.0.0"; default = null;
example = "0.0.0.0";
description = '' description = ''
IP on which the server instance will listen for incoming voice connections. Defaults to any IP. IP on which the server instance will listen for incoming voice connections. Defaults to any IP.
''; '';
@ -57,8 +58,9 @@ in
}; };
fileTransferIP = mkOption { fileTransferIP = mkOption {
type = types.str; type = types.nullOr types.str;
default = "0.0.0.0"; default = null;
example = "0.0.0.0";
description = '' description = ''
IP on which the server instance will listen for incoming file transfer connections. Defaults to any IP. IP on which the server instance will listen for incoming file transfer connections. Defaults to any IP.
''; '';
@ -73,8 +75,9 @@ in
}; };
queryIP = mkOption { queryIP = mkOption {
type = types.str; type = types.nullOr types.str;
default = "0.0.0.0"; default = null;
example = "0.0.0.0";
description = '' description = ''
IP on which the server instance will listen for incoming ServerQuery connections. Defaults to any IP. IP on which the server instance will listen for incoming ServerQuery connections. Defaults to any IP.
''; '';
@ -122,9 +125,12 @@ in
ExecStart = '' ExecStart = ''
${ts3}/bin/ts3server \ ${ts3}/bin/ts3server \
dbsqlpath=${ts3}/lib/teamspeak/sql/ logpath=${cfg.logPath} \ dbsqlpath=${ts3}/lib/teamspeak/sql/ logpath=${cfg.logPath} \
voice_ip=${cfg.voiceIP} default_voice_port=${toString cfg.defaultVoicePort} \ ${optionalString (cfg.voiceIP != null) "voice_ip=${cfg.voiceIP}"} \
filetransfer_ip=${cfg.fileTransferIP} filetransfer_port=${toString cfg.fileTransferPort} \ default_voice_port=${toString cfg.defaultVoicePort} \
query_ip=${cfg.queryIP} query_port=${toString cfg.queryPort} license_accepted=1 ${optionalString (cfg.fileTransferIP != null) "filetransfer_ip=${cfg.fileTransferIP}"} \
filetransfer_port=${toString cfg.fileTransferPort} \
${optionalString (cfg.queryIP != null) "query_ip=${cfg.queryIP}"} \
query_port=${toString cfg.queryPort} license_accepted=1
''; '';
WorkingDirectory = cfg.dataDir; WorkingDirectory = cfg.dataDir;
User = user; User = user;