@@ -111,7 +111,7 @@ describe('web socket server URL', () => {
111111 it ( `should work behind proxy, when hostnames are different and ports are same ("${ webSocketServer } ")` , async ( ) => {
112112 const devServerHost = '127.0.0.1' ;
113113 const devServerPort = port1 ;
114- const proxyHost = Server . internalIPSync ( 'v4' ) ;
114+ const proxyHost = Server . findIp ( 'v4' , false ) ;
115115 const proxyPort = port1 ;
116116
117117 const compiler = rspack ( config ) ;
@@ -207,7 +207,7 @@ describe('web socket server URL', () => {
207207 it ( `should work behind proxy, when hostnames are different and ports are different ("${ webSocketServer } ")` , async ( ) => {
208208 const devServerHost = '127.0.0.1' ;
209209 const devServerPort = port1 ;
210- const proxyHost = Server . internalIPSync ( 'v4' ) ;
210+ const proxyHost = Server . findIp ( 'v4' , false ) ;
211211 const proxyPort = port2 ;
212212
213213 const compiler = rspack ( config ) ;
@@ -308,7 +308,7 @@ describe('web socket server URL', () => {
308308 it ( `should work behind proxy, when the "host" option is "local-ip" and the "port" option is "auto" ("${ webSocketServer } ")` , async ( ) => {
309309 process . env . RSPACK_DEV_SERVER_BASE_PORT = 40000 ;
310310
311- const proxyHost = Server . internalIPSync ( 'v4' ) ;
311+ const proxyHost = Server . findIp ( 'v4' , false ) ;
312312 const proxyPort = port2 ;
313313
314314 const compiler = rspack ( config ) ;
@@ -1916,7 +1916,7 @@ describe('web socket server URL', () => {
19161916 } ) ;
19171917
19181918 it ( `should work when "host" option is IPv4 ("${ webSocketServer } ")` , async ( ) => {
1919- const hostname = Server . internalIPSync ( 'v4' ) ;
1919+ const hostname = Server . findIp ( 'v4' , false ) ;
19201920 const compiler = rspack ( config ) ;
19211921 const devServerOptions = {
19221922 webSocketServer,
@@ -1984,7 +1984,7 @@ describe('web socket server URL', () => {
19841984 } ) ;
19851985
19861986 it ( `should work when "host" option is "local-ip" ("${ webSocketServer } ")` , async ( ) => {
1987- const hostname = Server . internalIPSync ( 'v4' ) ;
1987+ const hostname = Server . findIp ( 'v4' , false ) ;
19881988 const compiler = rspack ( config ) ;
19891989 const devServerOptions = {
19901990 webSocketServer,
@@ -2053,7 +2053,7 @@ describe('web socket server URL', () => {
20532053 } ) ;
20542054
20552055 it ( `should work when "host" option is "local-ipv4" ("${ webSocketServer } ")` , async ( ) => {
2056- const hostname = Server . internalIPSync ( 'v4' ) ;
2056+ const hostname = Server . findIp ( 'v4' , false ) ;
20572057 const compiler = rspack ( config ) ;
20582058 const devServerOptions = {
20592059 webSocketServer,
0 commit comments