我使用具有以下配置的nginx-1.11.8。
stream {
log_format basic '$time_iso8601 $remote_addr '
'$protocol $status $bytes_sent $bytes_received '
'$session_time $upstream_addr '
'"$upstream_bytes_sent" "$upstream_bytes_received" "$upstream_connect_time"';
access_log logs/stream.log basic buffer=1k flush=5s;
include *.stream.conf;
}
Run Code Online (Sandbox Code Playgroud)
现在,我只能在tcp日志中获取IP和其他不重要的内容。我想知道tcp数据包中与IP有关的一些重要信息。我应该怎么做才能在TCP日志中获取完整的TCP数据包?提前致谢。
我有一个 Jenkins 管道,使用以下代码签出要构建的项目。
checkout([$class: 'GitSCM', branches: [[name: "*/develop"]], doGenerateSubmoduleConfigurations: false, extensions: [[$class: 'CloneOption', noTags: false, reference: '', shallow: false],[$class: 'LocalBranch', localBranch: "**"]], submoduleCfg: [], userRemoteConfigs: [[credentialsId: 'foobar', url: 'git@github.com:foo/bar.git']]])
如何让 git Revision 显示远程仓库地址,例如 git@github.com:foo/bar.git/tree/develop,而不是 refs/remotes/origin/develop。

提前致谢!
当我使用错误的服务器地址(例如 127.0.0.1)作为 URL 的服务器地址发送 http 请求时,libcurl 返回 CURLE_OK 并获取 http 代码 0。但是,当我使用 IE 发送相同的请求时,我得到 http 代码 404 。有谁知道在发送这样的请求时如何使用 libcurl 获得错误代码而不是 0 。