chenjiankun
cd7070aebb
docker: define a dummy hostname to use for local connections
...
For local communications (npipe://, unix://), the hostname is not used,
but we need valid and meaningful hostname.
The current code used the client's `addr` as hostname in some cases, which
could contain the path for the unix-socket (`/var/run/docker.sock`), which
gets rejected by go1.20.6 and go1.19.11 because of a security fix for
[CVE-2023-29406 ][1], which was implemented in https://go.dev/issue/60374 .
Prior versions go Go would clean the host header, and strip slashes in the
process, but go1.20.6 and go1.19.11 no longer do, and reject the host
header.
This patch introduces a `DummyHost` const, and uses this dummy host for
cases where we don't need an actual hostname.
2023-08-02 16:30:20 +08:00
..
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2020-03-05 15:13:09 +08:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2020-03-05 15:13:09 +08:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-12-25 19:10:46 +08:00
2019-12-25 19:10:46 +08:00
2019-09-30 10:37:25 -04:00
2019-12-25 19:10:46 +08:00
2019-09-30 10:37:25 -04:00
2019-12-25 19:10:46 +08:00
2019-12-25 19:10:46 +08:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-09-30 10:37:25 -04:00
2019-12-25 19:10:46 +08:00
2022-11-24 14:31:40 +08:00
2019-09-30 10:37:25 -04:00
2019-12-25 19:10:46 +08:00
2019-12-25 19:10:46 +08:00
2019-09-30 10:37:25 -04:00
2019-12-25 19:10:46 +08:00
2019-09-30 10:37:25 -04:00
2019-12-25 19:10:46 +08:00
2019-12-25 19:10:46 +08:00
2019-12-25 19:10:46 +08:00
2019-12-25 19:10:46 +08:00
2019-12-25 19:10:46 +08:00
2019-12-25 19:10:46 +08:00
2019-12-25 19:10:46 +08:00
2019-12-25 19:10:46 +08:00
2020-03-05 15:13:09 +08:00
2020-03-05 15:13:09 +08:00
2020-03-05 15:13:09 +08:00
2020-03-05 15:13:09 +08:00
2020-03-05 15:13:09 +08:00
2020-03-05 15:13:09 +08:00
2020-03-05 15:13:09 +08:00
2020-03-05 15:13:09 +08:00
2021-01-19 14:03:29 +08:00
2021-01-19 14:03:29 +08:00
2021-01-19 14:03:29 +08:00
2021-01-19 14:03:29 +08:00
2022-11-24 14:31:40 +08:00
2020-07-06 18:56:50 +08:00
2021-01-19 14:03:29 +08:00
2021-01-19 14:03:29 +08:00
2020-11-28 09:37:25 +08:00
2020-11-28 09:37:25 +08:00
2020-11-28 09:37:25 +08:00
2020-11-28 09:37:25 +08:00
2020-11-28 09:37:25 +08:00
2021-01-19 14:03:29 +08:00
2021-01-19 14:03:29 +08:00
2021-01-04 10:45:04 +08:00
2021-01-19 14:03:29 +08:00
2021-01-04 10:45:04 +08:00
2021-01-19 14:03:29 +08:00
2021-01-04 10:45:04 +08:00
2021-01-19 14:03:29 +08:00
2021-01-19 14:03:29 +08:00
2021-01-19 14:03:29 +08:00
2021-01-19 14:03:29 +08:00
2021-01-19 14:03:29 +08:00
2021-01-19 14:03:29 +08:00
2021-01-19 14:03:29 +08:00
2021-01-19 14:03:29 +08:00
2021-03-18 15:40:53 +08:00
2021-03-18 15:40:53 +08:00
2021-03-18 15:40:53 +08:00
2021-03-18 15:40:53 +08:00
2022-09-15 16:58:10 +08:00
2022-09-15 16:58:10 +08:00
2022-09-15 16:58:10 +08:00
2022-09-15 16:58:10 +08:00
2022-09-15 16:58:10 +08:00
2022-09-15 16:58:10 +08:00
2022-09-15 16:58:10 +08:00
2022-09-15 16:58:10 +08:00
2022-09-15 16:58:10 +08:00
2022-09-15 16:58:10 +08:00
2022-09-15 16:58:10 +08:00
2022-09-15 16:58:10 +08:00
2022-09-15 16:58:10 +08:00
2022-09-15 16:58:10 +08:00
2022-09-15 16:58:10 +08:00
2022-09-15 16:58:10 +08:00
2022-09-15 16:58:10 +08:00
2022-09-15 16:58:10 +08:00
2022-09-15 16:58:10 +08:00
2022-09-15 16:58:10 +08:00
2022-09-15 16:58:10 +08:00
2022-09-15 16:58:10 +08:00
2022-09-15 16:58:10 +08:00
2022-09-15 16:58:10 +08:00
2022-09-15 16:58:10 +08:00
2022-09-15 16:58:10 +08:00
2022-09-15 16:58:10 +08:00
2022-09-15 16:58:10 +08:00
2022-09-15 16:58:10 +08:00
2022-09-15 16:58:10 +08:00
2022-09-15 16:58:10 +08:00
2022-09-15 16:58:10 +08:00
2022-09-15 16:58:10 +08:00
2022-09-15 16:58:10 +08:00
2022-09-15 16:58:10 +08:00
2022-09-15 16:58:10 +08:00
2022-09-15 16:58:10 +08:00
2022-09-15 16:58:10 +08:00
2022-09-15 16:58:10 +08:00
2022-09-15 16:58:10 +08:00
2022-09-15 16:58:10 +08:00
2022-09-16 09:24:39 +08:00
2022-11-22 16:36:27 +08:00
2022-11-22 20:40:56 +08:00
2022-12-01 16:28:49 +08:00
2023-02-17 16:52:06 +08:00
2023-03-10 16:39:45 +08:00
2023-03-15 10:03:30 +08:00
2023-03-16 14:27:21 +08:00
2023-03-30 10:02:42 +08:00
2023-03-30 10:02:42 +08:00
2023-03-30 10:02:42 +08:00
2023-03-30 10:02:42 +08:00
2023-03-30 10:02:42 +08:00
2023-03-30 10:02:42 +08:00
2023-03-30 10:02:42 +08:00
2023-03-30 10:02:42 +08:00
2023-03-30 10:02:42 +08:00
2023-03-30 10:02:42 +08:00
2023-03-30 10:02:42 +08:00
2023-03-30 10:02:42 +08:00
2023-04-06 20:00:21 +08:00
2023-04-06 20:00:21 +08:00
2023-04-06 20:00:21 +08:00
2023-06-09 11:06:25 +08:00
2023-07-13 11:26:08 +08:00
2023-07-13 11:26:08 +08:00
2023-08-02 16:30:20 +08:00