File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -67,6 +67,12 @@ guestfish and expanded differently. Since NBD URIs are now widely
67
67
supported this magic is no longer necessary. In nbdkit E<ge> 1.24
68
68
both variables expand to the same URI.
69
69
70
+ =item C<$tls>
71
+
72
+ Corresponds to the I<--tls> option passed to nbdkit. If I<--tls=off>
73
+ this is not set. If I<--tls=on> this is set to C<"1">. If
74
+ I<--tls=require> this is set to C<"2">.
75
+
70
76
=item C<$port>
71
77
72
78
If E<ne> "", the port number that nbdkit is listening on.
Original file line number Diff line number Diff line change @@ -118,7 +118,9 @@ run_command (void)
118
118
shell_quote (export_name , fp );
119
119
putc ('\n' , fp );
120
120
121
- /* Construct $port and $unixsocket. */
121
+ /* Construct $tls, $port and $unixsocket. */
122
+ if (tls > 0 )
123
+ fprintf (fp , "tls=%d\n" , tls );
122
124
fprintf (fp , "port=" );
123
125
if (port )
124
126
shell_quote (port , fp );
You can’t perform that action at this time.
0 commit comments