mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2026-01-06 17:10:50 +01:00
* allow port to be specified on command line
* use a standard port as default git-svn-id: trunk@37949 -
This commit is contained in:
parent
84632a39e0
commit
16fb199902
@ -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.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user