From 07213c226846664c07bc53d752bb7e9e11b00764 Mon Sep 17 00:00:00 2001 From: Jeffrey Serio Date: Sun, 23 Mar 2025 11:59:22 -0500 Subject: [PATCH] use TCP --- shell/natpmpcd | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/shell/natpmpcd b/shell/natpmpcd index 8cd3c9a..fe5a290 100755 --- a/shell/natpmpcd +++ b/shell/natpmpcd @@ -1,9 +1,10 @@ #!/bin/sh while true; do - if ! natpmpc -a 1 0 udp 60 -g 10.2.0.1; then - echo "ERROR with natpmpc command" + date + natpmpc -a 1 0 udp 60 -g 10.2.0.1 && natpmpc -a 1 0 tcp 60 -g 10.2.0.1 || { + echo "error Failure natpmpc $(date)" break - fi + } sleep 45 done