Displaying 1 result from an estimated 1 matches for "a5b227c4".
2020 Jul 10
0
[RFC nbdkit PATCH] server: Allow --run with --vsock
...ernal.h
+++ b/server/internal.h
@@ -129,6 +129,7 @@ extern bool tls_verify_peer;
extern char *unixsocket;
extern const char *user, *group;
extern bool verbose;
+extern bool vsock;
extern int saved_stdin;
extern int saved_stdout;
diff --git a/server/captive.c b/server/captive.c
index f8107604..a5b227c4 100644
--- a/server/captive.c
+++ b/server/captive.c
@@ -72,7 +72,7 @@ run_command (void)
/* Construct $uri. */
fprintf (fp, "uri=");
if (port) {
- fprintf (fp, "nbd://localhost:");
+ fprintf (fp, vsock ? "nbd+vsock://1:" : "nbd://localhost:");...