Procházet zdrojové kódy

fix default config and config check

Ralf S. Engelschall před 20 roky
rodič
revize
1182c37d82
2 změnil soubory, kde provedl 4 přidání a 4 odebrání
  1. 3 3
      openser/openser.cfg
  2. 1 1
      openser/rc.openser

+ 3 - 3
openser/openser.cfg

@@ -176,7 +176,7 @@ route[1] {
     #};
                                                         
     #   NAT: processing of replies; apply to all transactions
-    t_on_reply("1");
+    #t_on_reply("1");
                                                                         
     #   send it out now; use stateful forwarding as it works reliably even for UDP2TCP
     if (!t_relay()) {
@@ -184,7 +184,7 @@ route[1] {
     };
 }
 
-onreply_route[1] {
+#onreply_route[1] {
     #   NAT: is it a NAT'ed transaction ?
     #   otherwise, is it a transaction behind a NAT and we did not
     #   know at time of request processing ? (RFC1918 contacts)
@@ -194,5 +194,5 @@ onreply_route[1] {
     #} else if (nat_uac_test("1")) {
     #    fix_nated_contact();
     #};
-}
+#}
 

+ 1 - 1
openser/rc.openser

@@ -26,7 +26,7 @@
 %status -u @l_susr@ -o
     openser_usable="no"
     openser_active="no"
-    if [ ".`@l_prefix@/sbin/openser -c 2>/dev/null | grep 'config file ok'`" != . ]; then
+    if @l_prefix@/sbin/openser -c >/dev/null 2>&1; then
         openser_usable="yes"
     fi
     if @l_prefix@/sbin/openserctl ps >/dev/null 2>&1; then