Skip to content

Commit

Permalink
Add lint workflow, update READE and fix import
Browse files Browse the repository at this point in the history
  • Loading branch information
theodorsm committed Apr 24, 2024
1 parent 96ac337 commit e9caeef
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 2 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Lint
on:
pull_request:
branches:
- main
push:
branches:

permissions:
contents: read

jobs:
linting:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.ref }}

- name: Setup go
uses: actions/setup-go@v5
with:
go-version: '1.19'

- name: golangci-lint
uses: golangci/golangci-lint-action@v4
with:
version: v1.56.2
skip-pkg-cache: true
skip-build-cache: true
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ covertDTLS is a library inspired by [uTLS](https://github.com/refraction-network

## Why does this library exists?

The censorship circumvention system [Snowflake](https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake) has previously been blocked by fingerprinting the dtls handshake. This library is a module that extends the `pion/dtls` library by hooking and manipulating messages to make them indistinguishable from other dtls implementations used for webrtc traffic.
The censorship circumvention system [Snowflake](https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake) has previously been blocked by fingerprinting the dtls handshake. This library is a module that extends the `pion/dtls` library by hooking and manipulating handshake messages to make them indistinguishable from other dtls implementations used for webrtc traffic.

## Fingerprint generation

Expand Down
2 changes: 1 addition & 1 deletion pkg/mimicry/mimic_client_hello.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

"github.com/pion/dtls/v2/pkg/protocol/extension"
"github.com/pion/dtls/v2/pkg/protocol/handshake"
"github.com/theodorsm/dtls-webrtc-fingerprint/pkg/fingerprints"
"github.com/theodorsm/covert-dtls/pkg/fingerprints"
)

var errBufferTooSmall = errors.New("buffer is too small") //nolint:goerr113
Expand Down

0 comments on commit e9caeef

Please sign in to comment.