File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ function ConsoleModeDecodeParameter(out FileNameOrDirStr: UTF8String;
111111function DecodeConsoleUpdateParameter (const ConsoleUpdateParameter: UTF8String;
112112 var TrackerList: TTrackerList): boolean;
113113
114-
114+ function TrackerURLWithAnnounce ( const TrackerURL: UTF8String): boolean;
115115
116116const
117117 VALID_TRACKERS_URL: array [0 ..4 ] of UTF8String =
@@ -687,10 +687,12 @@ function DecodeConsoleUpdateParameter(const ConsoleUpdateParameter: UTF8String;
687687 end ;
688688end ;
689689
690-
691-
692-
693-
694-
690+ function TrackerURLWithAnnounce (const TrackerURL: UTF8String): boolean;
691+ const
692+ ANNOUNCE_STRING: string = ' /announce' ;
693+ begin
694+ // TrackerURL must end with ANNOUNCE_STRING
695+ Result := RightStr(TrackerURL, length(ANNOUNCE_STRING)) = ANNOUNCE_STRING;
696+ end ;
695697
696698end .
You can’t perform that action at this time.
0 commit comments