cli: add support for passing proxy command line parameter (#981)
This implements the bare minimum needed to have circumvention proxy support in OONI Probe CLI. The reference issue is https://github.com/ooni/probe/issues/1955. (Most of that issue is implemented, save for the fact that currently we do not have support for `http` and `https` proxies.) While there, add to `Makefile` a rule for correctly building `ooniprobe` and `miniooni` for "this system" (i.e., the default `GOOS` and `GOARCH` on a system), because we needed this for testing this patch and we needed to figure out the commands instead.
This commit is contained in:
parent
9750032639
commit
d6def35286
6 changed files with 66 additions and 5 deletions
14
Makefile
14
Makefile
|
|
@ -129,6 +129,20 @@ CLI/linux-static-armv7: search/for/docker maybe/copypsiphon
|
|||
CLI/linux-static-arm64: search/for/docker maybe/copypsiphon
|
||||
./CLI/go-build-linux-static $(OONI_GO_DOCKER_GOCACHE) arm64 ./cmd/ooniprobe ./internal/cmd/miniooni
|
||||
|
||||
#help:
|
||||
#help: The `make CLI/miniooni` command creates a build of miniooni, for the current
|
||||
#help: system, putting the binary in the top-level directory.
|
||||
.PHONY: CLI/miniooni
|
||||
CLI/miniooni: maybe/copypsiphon search/for/go
|
||||
./CLI/go-build-generic ./internal/cmd/miniooni
|
||||
|
||||
#help:
|
||||
#help: The `make CLI/ooniprobe` command creates a build of ooniprobe, for the current
|
||||
#help: system, putting the binary in the top-level directory.
|
||||
.PHONY: CLI/ooniprobe
|
||||
CLI/ooniprobe: maybe/copypsiphon search/for/go
|
||||
./CLI/go-build-generic ./cmd/ooniprobe
|
||||
|
||||
#help:
|
||||
#help: The `make CLI/windows` command builds the ooniprobe and miniooni
|
||||
#help: command line clients for windows/386 and windows/amd64.
|
||||
|
|
|
|||
Loading…
Reference in a new issue