Skip to content

Commit 2b9b251

Browse files
committed
fixing public ip stomping in windows batch script. (#780)
(cherry picked from commit f288581)
1 parent 5d2bfac commit 2b9b251

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)