mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-03-17 23:56:44 +00:00
update translations
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
rem %1 = http server port
|
||||
rem %2 = http server url
|
||||
rem %3 = udp server port
|
||||
rem %4 = tcp server port (web socket)
|
||||
|
||||
if [%1]==[] GOTO DONE
|
||||
|
||||
@@ -18,11 +17,6 @@ if [%3]==[] GOTO DONE
|
||||
netsh advfirewall firewall delete rule name="Port %3" protocol=UDP localport=%3
|
||||
netsh advfirewall firewall add rule name="Port %3" dir=in action=allow protocol=UDP localport=%3
|
||||
|
||||
if [%4]==[] GOTO DONE
|
||||
|
||||
netsh advfirewall firewall delete rule name="Port %4" protocol=TCP localport=%4
|
||||
netsh advfirewall firewall add rule name="Port %4" dir=in action=allow protocol=TCP localport=%4
|
||||
|
||||
|
||||
:DONE
|
||||
Exit
|
||||
@@ -15,10 +15,9 @@ namespace MediaBrowser.ServerApplication.Native
|
||||
/// </summary>
|
||||
/// <param name="httpServerPort">The HTTP server port.</param>
|
||||
/// <param name="httpServerUrlPrefix">The HTTP server URL prefix.</param>
|
||||
/// <param name="webSocketPort">The web socket port.</param>
|
||||
/// <param name="udpPort">The UDP port.</param>
|
||||
/// <param name="tempDirectory">The temp directory.</param>
|
||||
public static void AuthorizeServer(int httpServerPort, string httpServerUrlPrefix, int webSocketPort, int udpPort, string tempDirectory)
|
||||
public static void AuthorizeServer(int httpServerPort, string httpServerUrlPrefix, int udpPort, string tempDirectory)
|
||||
{
|
||||
Directory.CreateDirectory(tempDirectory);
|
||||
|
||||
@@ -38,10 +37,9 @@ namespace MediaBrowser.ServerApplication.Native
|
||||
{
|
||||
FileName = tmpFile,
|
||||
|
||||
Arguments = string.Format("{0} {1} {2} {3}", httpServerPort,
|
||||
Arguments = string.Format("{0} {1} {2}", httpServerPort,
|
||||
httpServerUrlPrefix,
|
||||
udpPort,
|
||||
webSocketPort),
|
||||
udpPort),
|
||||
|
||||
CreateNoWindow = true,
|
||||
WindowStyle = ProcessWindowStyle.Hidden,
|
||||
|
||||
Reference in New Issue
Block a user