Browse Source

* allow port to be specified on command line
* use a standard port as default

git-svn-id: trunk@37949 -

svenbarth 7 years ago
parent
commit
16fb199902
1 changed files with 2 additions and 2 deletions
  1. 2 2
      packages/fcl-web/examples/echo/fphttp/echo.lpr

+ 2 - 2
packages/fcl-web/examples/echo/fphttp/echo.lpr

@@ -3,10 +3,10 @@ program echo;
 {$mode objfpc}{$H+}
 
 uses
-  fphttpapp, wmecho;
+  SysUtils, fphttpapp, wmecho;
 
 begin
-  Application.Port:=2018;
+  Application.Port:=StrToIntDef(ParamStr(1), 8080);
   Application.Initialize;
   Application.Run;
 end.