Use ifconfig_header().
authorGuus Sliepen <guus@tinc-vpn.org>
Sun, 17 Apr 2016 12:36:29 +0000 (14:36 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Sun, 17 Apr 2016 12:36:29 +0000 (14:36 +0200)
src/invitation.c

index 07594ff..35e8e49 100644 (file)
@@ -613,8 +613,7 @@ make_names:
                return false;
        }
 
                return false;
        }
 
-       fprintf(fup, "#!/bin/sh\n");
-       long fuppos = ftell(fup);
+       ifconfig_header(fup);
 
        // Filter first chunk on approved keywords, split between tinc.conf and hosts/Name
        // Generate a tinc-up script from Ifconfig and Route keywords.
 
        // Filter first chunk on approved keywords, split between tinc.conf and hosts/Name
        // Generate a tinc-up script from Ifconfig and Route keywords.