demo
This commit is contained in:
parent
bef1fbaba4
commit
aaebc5494e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue