summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-07-04Use log.Printf only when a format is providedAnjan Nath
This adds a check to c.log to see if the format string is empty if its empty use log.Print and if a format is provided then use log.Printf
2022-07-04Fix error reported by go testAnjan Nath
This fixes the following error from go test ``` client/client.go:45:8: (*0xacab.org/leap/obfsvpn/client.Client).log call has arguments but no formatting directives ```
2022-06-26fix anonymous function callcyBerta
2022-06-23fix started state trackingcyBerta
2022-06-23implement simple event logging interfacecyBerta
2022-06-23remove mutex, handle thread safety outsidecyBerta
2022-06-12add unit test to check panic in Dial and DialContext functionsAnjan Nath
2022-06-06refactor conditional for readabilityatanarjuat
2022-06-06catch errorsatanarjuat
2022-06-06avoid panicatanarjuat
2022-06-06statusatanarjuat
2022-06-06draft stop methodcyBerta
2022-06-06a bit more wordyatanarjuat
2022-06-05update go.mod by running go mod tidyAnjan Nath
2022-06-05add package comment to client/client.go to make the staticchecker happyAnjan Nath
2022-05-29add android notesatanarjuat
2022-05-29attempt at android bindingsatanarjuat
2022-05-29delete socks5atanarjuat
2022-05-29refactoratanarjuat
2022-05-29fix testatanarjuat
2022-05-29bump dependencyatanarjuat
2022-05-29add gitatanarjuat
2022-05-29go get before testsatanarjuat
2022-05-29do not return if error on acceptatanarjuat
2022-05-29pass kcp dialer to socks5 proxyatanarjuat
2022-05-23add kcpatanarjuat
2022-05-23wip: use kcp in the serverfeat/kcpatanarjuat
2022-05-23wip: kcp clientatanarjuat
2022-05-22clarify requirement of obfsvpn endpoint port for openvpn remoteAnjan Nath
this also introduces OBFS4_ENDPOINT_PORT and renames OBFS4_ENDPOINT to OBFS4_ENDPOINT_PORT and updates the script 'run-openvpn.sh' to use these
2022-05-22use correct braces for shell variable for easy c&p of commandAnjan Nath
2022-05-22remove obfsclient binary from git treeAnjan Nath
2022-05-21add 'lint' target to Makefile to quickly run the linter while developingAnjan Nath
here we assume gosec is already available in the dev machine, gofmt and govet are part of the go-sdk
2022-05-21handle errors while closing the connections in CopyLoop functionAnjan Nath
2022-05-21ignore gosec warning G304 for reading the config file path from variableAnjan Nath
the path is needed to be read from the user and obfsproxy will be started with root privileges anyway, we can ignore this warning, more details about the warn at https://securego.io/docs/rules/g304.html
2022-05-21simplify testing of client and serveratanarjuat
2022-05-21functional transparent proxyatanarjuat
2022-04-19pin obfs4 version pre-elligator fixkali kaneko
2022-04-19obfsproxy: add initial proxy implementationSam Whited
Fixes #3 Updates #4 Signed-off-by: Sam Whited <sam@samwhited.com>
2022-03-16obfsvpn: allow wrapping existing connectionsSam Whited
This can be used to add support for additional networks that we don't necessarily want to depend on in the library. Signed-off-by: Sam Whited <sam@samwhited.com>
2022-03-15Copy license over from ShapeshifterSam Whited
Copies the license over from Shapeshfiter, removing the Go/OBFS4 parts since we're no longer copying anything from their repos (if we do use some of their stuff in the future again we'll want to copy over their licenses as well). Signed-off-by: Sam Whited <sam@samwhited.com>
2022-03-11obfsvpn: support gateway certificatesSam Whited
Support creating dialers and listeners from the newer gateway certificates, as well as setting the cert argument when connecting. Signed-off-by: Sam Whited <sam@samwhited.com>
2022-03-08obfsvpn: add static analysis and linting to CISam Whited
Signed-off-by: Sam Whited <sam@samwhited.com>
2022-03-08obfsvpn: enable GitLab CISam Whited
Fixes #2 Signed-off-by: Sam Whited <sam@samwhited.com>
2022-03-08obfsvpn: create new dialer from PT argsSam Whited
The dialer is meant as a way to avoid having to use or think about pluggable transport arguments (you can provide them all as typed configurations on the dialer), however, sometimes we already have the pluggable transport arguments in their parsed form (eg. when using a higher level protocol to negotiate the args) and need to construct a dialer from them. This patch allows constructing the dialer and getting the original arguments back out. Signed-off-by: Sam Whited <sam@samwhited.com>
2022-03-08obfsvpn: fix typo in listener docsSam Whited
Signed-off-by: Sam Whited <sam@samwhited.com>
2022-03-04obfsvpn: initial draft library APISam Whited
Signed-off-by: Sam Whited <sam@samwhited.com>
2022-03-04RootSam Whited