mac valet环境中报GuzzleHttp Exception ConnectException cURL error 6: Could not resolve错误

laravel Valet本地测试环境使用GuzzleHttp报错
错误信息如下:

GuzzleHttp \ Exception \ ConnectException
"cURL error 6: Could not resolve: blog.test (Domain name not found) (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)"

解决办法:
在本地网络配置信息中,追加DNS服务器地址:127.0.0.1

你可能感兴趣的:(mac valet环境中报GuzzleHttp Exception ConnectException cURL error 6: Could not resolve错误)