From aaebc5494e57c303857b01c266145196b6af6bb7 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Thu, 31 Dec 2015 02:37:57 +0000 Subject: [PATCH] demo --- bin/service.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/bin/service.js b/bin/service.js index a992e5b..956fa42 100644 --- a/bin/service.js +++ b/bin/service.js @@ -1,8 +1,16 @@ 'use strict'; var punch = require('../'); +var exec = require('child_process').exec; function touch() { + exec("/usr/local/bin/ddns --hostname sarah.daplie.com --email 'coolaj86@gmail.com' --agree --token /srv/holepunch/bin/token.jwt", function (err, stdout, stderr) { + if (err || stderr) { + console.error('ddns error:', err || stderr); + } + //console.log(stdout); + }); + punch({ mappings: [ { internal: 80