Skip to content

Commit 8669fb1

Browse files
Nadrierilglobin
authored andcommittedJul 17, 2017
tinc service: BindToAddress and ListenAddress are different options, they should not be mistaken
1 parent d2aa638 commit 8669fb1

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed
 

‎nixos/doc/manual/release-notes/rl-1709.xml

+10
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,16 @@ rmdir /var/lib/ipfs/.ipfs
120120
also serve as a SSH agent if <literal>enableSSHSupport</literal> is set.
121121
</para>
122122
</listitem>
123+
<listitem>
124+
<para>
125+
The <literal>services.tinc.networks.&lt;name&gt;.listenAddress</literal>
126+
option had a misleading name that did not correspond to its behavior. It
127+
now correctly defines the ip to listen for incoming connections on. To
128+
keep the previous behaviour, use
129+
<literal>services.tinc.networks.&lt;name&gt;.bindToAddress</literal>
130+
instead. Refer to the description of the options for more details.
131+
</para>
132+
</listitem>
123133
</itemizedlist>
124134

125135
<para>Other notable improvements:</para>

‎nixos/modules/services/networking/tinc.nix

+11-2
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,15 @@ in
7979
default = null;
8080
type = types.nullOr types.str;
8181
description = ''
82-
The ip adress to bind to.
82+
The ip address to listen on for incoming connections.
83+
'';
84+
};
85+
86+
bindToAddress = mkOption {
87+
default = null;
88+
type = types.nullOr types.str;
89+
description = ''
90+
The ip address to bind to (both listen on and send packets from).
8391
'';
8492
};
8593

@@ -131,7 +139,8 @@ in
131139
Name = ${if data.name == null then "$HOST" else data.name}
132140
DeviceType = ${data.interfaceType}
133141
${optionalString (data.ed25519PrivateKeyFile != null) "Ed25519PrivateKeyFile = ${data.ed25519PrivateKeyFile}"}
134-
${optionalString (data.listenAddress != null) "BindToAddress = ${data.listenAddress}"}
142+
${optionalString (data.listenAddress != null) "ListenAddress = ${data.listenAddress}"}
143+
${optionalString (data.bindToAddress != null) "BindToAddress = ${data.bindToAddress}"}
135144
Device = /dev/net/tun
136145
Interface = tinc.${network}
137146
${data.extraConfig}

0 commit comments

Comments
 (0)
Please sign in to comment.