我正在尝试让这个 gRPC 服务器示例与 Google Asylo ( https://github.com/google/asylo/tree/master/asylo/examples/grpc_server ) 一起使用。要初始化服务器,我需要指定一个 server_address在这个配置文件中(https://github.com/google/asylo/blob/master/asylo/examples/grpc_server/grpc_server_config.proto)
示例中的服务器地址是这样写的:
/ The address that the gRPC server inside the enclave will be hosted on.
// Required.
optional string server_address = 205739939;
我不确定这个地址的格式是什么(即是 IPv4 还是 IPv6)。当我尝试示例中的地址时,它给了我以下错误:
E0415 20:26:28.102505429 139772652978128 server_chttp2.cc:40] {"created":"@1555359988.102435497","description":"在总共 1 个解析中没有添加地址","file":"external/com_github_grpc_grpc/src/core /ext/transport/chttp2/server/chttp2_server.cc","file_line":348,"referenced_errors":[{"created":"@1555359988.102435497","description":"协议族不支持地址族"," errno":106,"file":"external/com_github_grpc_grpc/src/core/lib/iomgr/socket_utils_common_posix.cc","file_line":379,"os_error":"协议族不支持地址族","syscall" :"socket","target_address":"[::1]:0"}]} 2019-04-15 20:26:28 致命 grpc_server_driver.cc : 62 : 加载 grpc_server/grpc_server_enclave.so 失败: ::asylo::error::GoogleErrorSpace::INTERNAL: 无法启动服务器
我想写 Ipv4 地址,例如:127.0.0.1:5000 但我没有这样做。任何指针表示赞赏?