@@ -113,7 +113,7 @@ describe("web socket server URL", () => {
113113 it ( `should work behind proxy, when hostnames are different and ports are same ("${ webSocketServer } ")` , async ( ) => {
114114 const devServerHost = "127.0.0.1" ;
115115 const devServerPort = port1 ;
116- const proxyHost = Server . internalIPSync ( "v4" ) ;
116+ const proxyHost = Server . findIp ( "v4" , false ) ;
117117 const proxyPort = port1 ;
118118
119119 const compiler = webpack ( config ) ;
@@ -209,7 +209,7 @@ describe("web socket server URL", () => {
209209 it ( `should work behind proxy, when hostnames are different and ports are different ("${ webSocketServer } ")` , async ( ) => {
210210 const devServerHost = "localhost" ;
211211 const devServerPort = port1 ;
212- const proxyHost = Server . internalIPSync ( "v4" ) ;
212+ const proxyHost = Server . findIp ( "v4" , false ) ;
213213 const proxyPort = port2 ;
214214
215215 const compiler = webpack ( config ) ;
@@ -310,7 +310,7 @@ describe("web socket server URL", () => {
310310 it ( `should work behind proxy, when the "host" option is "local-ip" and the "port" option is "auto" ("${ webSocketServer } ")` , async ( ) => {
311311 process . env . WEBPACK_DEV_SERVER_BASE_PORT = 40000 ;
312312
313- const proxyHost = Server . internalIPSync ( "v4" ) ;
313+ const proxyHost = Server . findIp ( "v4" , false ) ;
314314 const proxyPort = port2 ;
315315
316316 const compiler = webpack ( config ) ;
@@ -2006,7 +2006,7 @@ describe("web socket server URL", () => {
20062006 } ) ;
20072007
20082008 it ( `should work when "host" option is IPv4 ("${ webSocketServer } ")` , async ( ) => {
2009- const hostname = Server . internalIPSync ( "v4" ) ;
2009+ const hostname = Server . findIp ( "v4" , false ) ;
20102010 const compiler = webpack ( config ) ;
20112011 const devServerOptions = {
20122012 webSocketServer,
@@ -2074,7 +2074,7 @@ describe("web socket server URL", () => {
20742074 } ) ;
20752075
20762076 it ( `should work when "host" option is "local-ip" ("${ webSocketServer } ")` , async ( ) => {
2077- const hostname = Server . internalIPSync ( "v4" ) ;
2077+ const hostname = Server . findIp ( "v4" , false ) ;
20782078 const compiler = webpack ( config ) ;
20792079 const devServerOptions = {
20802080 webSocketServer,
@@ -2143,7 +2143,7 @@ describe("web socket server URL", () => {
21432143 } ) ;
21442144
21452145 it ( `should work when "host" option is "local-ipv4" ("${ webSocketServer } ")` , async ( ) => {
2146- const hostname = Server . internalIPSync ( "v4" ) ;
2146+ const hostname = Server . findIp ( "v4" , false ) ;
21472147 const compiler = webpack ( config ) ;
21482148 const devServerOptions = {
21492149 webSocketServer,
0 commit comments