force_rport() works even without TCP support compiled in.
authorMaxim Sobolev <sobomax@sippysoft.com>
Sun, 9 Jan 2005 14:37:20 +0000 (14:37 +0000)
committerMaxim Sobolev <sobomax@sippysoft.com>
Sun, 9 Jan 2005 14:37:20 +0000 (14:37 +0000)
cfg.y

diff --git a/cfg.y b/cfg.y
index c946f06..30b0dd9 100644 (file)
--- a/cfg.y
+++ b/cfg.y
@@ -1536,13 +1536,7 @@ cmd:             FORWARD LPAREN host RPAREN      { $$=mk_action( FORWARD_T,
                                                                                "string expected"); }
                | REVERT_URI LPAREN RPAREN { $$=mk_action( REVERT_URI_T, 0,0,0,0); }
                | REVERT_URI { $$=mk_action( REVERT_URI_T, 0,0,0,0); }
-               | FORCE_RPORT LPAREN RPAREN     {
-                                                       #ifdef USE_TCP
-                                                               $$=mk_action(FORCE_RPORT_T,0, 0, 0, 0); 
-                                                       #else
-                                                               yyerror("tcp support not compiled in");
-                                                       #endif
-                                                       }
+               | FORCE_RPORT LPAREN RPAREN     { $$=mk_action(FORCE_RPORT_T,0, 0, 0, 0); }
                | FORCE_RPORT                           {$$=mk_action(FORCE_RPORT_T,0, 0, 0, 0); }
                | FORCE_TCP_ALIAS LPAREN NUMBER RPAREN  {
                                        #ifdef USE_TCP