Skip to content

Commit 75b085f

Browse files
fixing public ip stomping in windows batch script. (#780) (#786)
(cherry picked from commit f288581) Co-authored-by: mcottontensor <80377552+mcottontensor@users.noreply.github.com>
1 parent 5d2bfac commit 75b085f

File tree

1 file changed

+4
-2
lines changed
  • SignallingWebServer/platform_scripts/cmd

1 file changed

+4
-2
lines changed

SignallingWebServer/platform_scripts/cmd/common.bat

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,8 +272,10 @@ call :SetupCoturn
272272
exit /b
273273

274274
:SetPublicIP
275-
FOR /f %%A IN ('curl --silent http://api.ipify.org') DO set PUBLIC_IP=%%A
276-
Echo External IP is : %PUBLIC_IP%
275+
IF "%PUBLIC_IP%"=="" (
276+
FOR /f %%A IN ('curl --silent http://api.ipify.org') DO set PUBLIC_IP=%%A
277+
Echo External IP is : %PUBLIC_IP%
278+
)
277279
exit /b
278280

279281
:SetupTurnStun

0 commit comments

Comments
 (0)