@@ -105,7 +105,7 @@ describe("web socket server URL", () => {
105105 it ( `should work behind proxy, when hostnames are different and ports are same ("${ webSocketServer } ")` , async ( ) => {
106106 const devServerHost = "127.0.0.1" ;
107107 const devServerPort = port1 ;
108- const proxyHost = Server . internalIPSync ( "v4" ) ;
108+ const proxyHost = Server . findIp ( "v4" , false ) ;
109109 const proxyPort = port1 ;
110110
111111 const compiler = webpack ( config ) ;
@@ -193,7 +193,7 @@ describe("web socket server URL", () => {
193193 it ( `should work behind proxy, when hostnames are different and ports are different ("${ webSocketServer } ")` , async ( ) => {
194194 const devServerHost = "localhost" ;
195195 const devServerPort = port1 ;
196- const proxyHost = Server . internalIPSync ( "v4" ) ;
196+ const proxyHost = Server . findIp ( "v4" , false ) ;
197197 const proxyPort = port2 ;
198198
199199 const compiler = webpack ( config ) ;
@@ -286,7 +286,7 @@ describe("web socket server URL", () => {
286286 it ( `should work behind proxy, when the "host" option is "local-ip" and the "port" option is "auto" ("${ webSocketServer } ")` , async ( ) => {
287287 process . env . WEBPACK_DEV_SERVER_BASE_PORT = 40000 ;
288288
289- const proxyHost = Server . internalIPSync ( "v4" ) ;
289+ const proxyHost = Server . findIp ( "v4" , false ) ;
290290 const proxyPort = port2 ;
291291
292292 const compiler = webpack ( config ) ;
@@ -1788,7 +1788,7 @@ describe("web socket server URL", () => {
17881788 } ) ;
17891789
17901790 it ( `should work when "host" option is IPv4 ("${ webSocketServer } ")` , async ( ) => {
1791- const hostname = Server . internalIPSync ( "v4" ) ;
1791+ const hostname = Server . findIp ( "v4" , false ) ;
17921792 const compiler = webpack ( config ) ;
17931793 const devServerOptions = {
17941794 webSocketServer,
@@ -1848,7 +1848,7 @@ describe("web socket server URL", () => {
18481848 } ) ;
18491849
18501850 it ( `should work when "host" option is "local-ip" ("${ webSocketServer } ")` , async ( ) => {
1851- const hostname = Server . internalIPSync ( "v4" ) ;
1851+ const hostname = Server . findIp ( "v4" , false ) ;
18521852 const compiler = webpack ( config ) ;
18531853 const devServerOptions = {
18541854 webSocketServer,
@@ -1909,7 +1909,7 @@ describe("web socket server URL", () => {
19091909 } ) ;
19101910
19111911 it ( `should work when "host" option is "local-ipv4" ("${ webSocketServer } ")` , async ( ) => {
1912- const hostname = Server . internalIPSync ( "v4" ) ;
1912+ const hostname = Server . findIp ( "v4" , false ) ;
19131913 const compiler = webpack ( config ) ;
19141914 const devServerOptions = {
19151915 webSocketServer,
0 commit comments