@@ -95,6 +95,8 @@ public function config(Request $request)
9595 $ host = $ node ->host ;
9696
9797 $ baseConfig = [
98+ 'protocol ' => $ nodeType ,
99+ 'listen_ip ' => '0.0.0.0 ' ,
98100 'server_port ' => (int ) $ serverPort ,
99101 'network ' => data_get ($ protocolSettings , 'network ' ),
100102 'networkSettings ' => data_get ($ protocolSettings , 'network_settings ' ) ?: null ,
@@ -132,6 +134,7 @@ public function config(Request $request)
132134 }
133135 ],
134136 'hysteria ' => [
137+ ...$ baseConfig ,
135138 'server_port ' => (int ) $ serverPort ,
136139 'version ' => (int ) $ protocolSettings ['version ' ],
137140 'host ' => $ host ,
@@ -148,6 +151,7 @@ public function config(Request $request)
148151 }
149152 ],
150153 'tuic ' => [
154+ ...$ baseConfig ,
151155 'version ' => (int ) $ protocolSettings ['version ' ],
152156 'server_port ' => (int ) $ serverPort ,
153157 'server_name ' => $ protocolSettings ['tls ' ]['server_name ' ],
@@ -157,24 +161,29 @@ public function config(Request $request)
157161 'heartbeat ' => "3s " ,
158162 ],
159163 'anytls ' => [
164+ ...$ baseConfig ,
160165 'server_port ' => (int ) $ serverPort ,
161166 'server_name ' => $ protocolSettings ['tls ' ]['server_name ' ],
162167 'padding_scheme ' => $ protocolSettings ['padding_scheme ' ],
163168 ],
164169 'socks ' => [
170+ ...$ baseConfig ,
165171 'server_port ' => (int ) $ serverPort ,
166172 ],
167173 'naive ' => [
174+ ...$ baseConfig ,
168175 'server_port ' => (int ) $ serverPort ,
169176 'tls ' => (int ) $ protocolSettings ['tls ' ],
170177 'tls_settings ' => $ protocolSettings ['tls_settings ' ]
171178 ],
172179 'http ' => [
180+ ...$ baseConfig ,
173181 'server_port ' => (int ) $ serverPort ,
174182 'tls ' => (int ) $ protocolSettings ['tls ' ],
175183 'tls_settings ' => $ protocolSettings ['tls_settings ' ]
176184 ],
177185 'mieru ' => [
186+ ...$ baseConfig ,
178187 'server_port ' => (string ) $ serverPort ,
179188 'protocol ' => (int ) $ protocolSettings ['protocol ' ],
180189 ],
0 commit comments