Joe Turki
0397f2187b
Upgrade golangci-lint, more linters
...
Introduces new linters, upgrade golangci-lint to version (v1.63.4)
2025-01-18 10:57:33 -06:00
Steffen Vogel
ab3e9f2f89
Make package REUSE compliant
2023-04-18 13:19:15 +02:00
Steffen Vogel
d913b60c89
Make golangci-lint happy
...
Since the golangci-lint action only validates changed
files, older code has never been fully linted.
This change fixes the linter for the whole module.
2023-01-25 13:17:01 +01:00
Aleksandr Razumov
c2a2cc8e9a
attributes: add RFC 8489 constants
...
* Add constants
* Update String()
* Update IANA stun parameters csv
2020-11-07 19:10:32 -08:00
ZHENK
85839ae560
Update CI configs to v0.4.7
...
Update lint scripts and CI configs.
Excluding codecov.yml.
2020-09-29 23:53:36 -07:00
Will LE
5600959511
Update cmd/stun-nat-behaviour (RFC5780 & RFC4787)
...
This update is to have cmd/stun-nat-behaviour strictly follow RFC5780
& RFC4787
- Fix typo in attributes of RFC5780
- Add RESPONSE-ORIGIN and other attributes' types in RFC5780
- Expose GetFromAs() & AddToAs() from addr.go
- Add cmd/stun-nat-behaviour parameters: timeout, verbose
- Generate new transacion id for each Binding Request
- NAT mapping tests: 2 tests -> 3 tests (add missing Test II)
- Refactor functions & update docs
Changes:
modified: addr.go
modified: attributes.go
modified: cmd/stun-nat-behaviour/main.go
modified: cmd/stun-nat-behaviour/README.md
modified: README.md
modified: testdata/stun-parameters-4.csv
Signed-off-by: Will LE <lexuandinhct@gmail.com >
2020-07-11 02:13:19 -07:00
Cecylia Bocovich
13a738c210
Add attributes for RFC 5780 (NAT behaviour)
...
This commit adds two attributes needed for the implementation of RFC
5780 (NAT Behavior Discovery Using STUN). The OTHER-ADDRESS attribute is
returned by a compatable STUN server and includes as its value the
server's second address. The CHANGE-REQUEST attribute is sent by a
client and contains as its value a 32-bit integer that encodes two
flags: one to indicate that the server should respond to the request
from a different IP address, and the other to request a change of port.
2020-05-27 15:43:29 -04:00
Yutaka Takeda
8b8a9409eb
Translate old xor-mapped-address value
...
Also remove uri.go as unused and causing build error
Resolves #21
2019-09-13 01:18:25 -07:00
Aleksandr Razumov
db2ead48d4
attributes: implement Setter for RawAttribute
2018-11-16 04:46:28 +03:00
Aleksandr Razumov
6705d3dd13
attributes: add types from RFC 6062
2018-08-21 02:58:43 +03:00
Aleksandr Razumov
2946426c10
attributes: add REQUESTED-ADDRESS-FAMILY to constants from RFC 6156
2018-08-11 23:00:53 +03:00
Aleksandr Razumov
872811ad91
attrs: add CheckOverflow and IsAttrSizeOverflow
2018-08-02 18:06:32 +03:00
Aleksandr Razumov
d905e9f513
attrs: add AttrType.{Optional,Required} methods
2018-08-01 18:38:27 +03:00
Aleksandr Razumov
f139299e92
all: refactor errors, improve coverage, refactor
2017-06-26 03:18:07 +02:00
Aleksandr Razumov
5505d6838c
attributes: adjust AttrOverflowErr, AttrLengthErr text
2017-06-25 17:53:12 +02:00
Aleksandr Razumov
63b375a10f
errors: refactor
2017-02-27 23:41:04 +03:00
Aleksandr Razumov
542983501d
all: refactor text attributes and cleanup
2017-02-22 19:22:12 +03:00
Aleksandr Razumov
f4af1f1a53
attributes, message: adjust hex formatting
2017-02-12 22:36:33 +03:00
Aleksandr Razumov
1d5427b2ea
all: more testing and attr refactor
2017-02-11 08:17:00 +03:00
Aleksandr Razumov
f1b2352162
all: remove usage of constant errors
2017-02-11 06:54:37 +03:00
Aleksandr Razumov
fba9f6b02d
all: refactor attributes
2017-02-11 05:23:49 +03:00
Aleksandr Razumov
3ec51bf758
all: const instead of var for errors
2017-02-04 20:53:33 -08:00
Aleksandr Razumov
a65bb247e9
all: fix linter warnings
2017-02-04 20:50:43 -08:00
Aleksandr Razumov
64e532d4ab
stun, attributes: add Fingerprint and refactor
2017-02-04 20:46:14 -08:00
Aleksandr Razumov
c17c2351ea
all: more refactoring for refactor god
2017-02-04 14:56:22 -08:00
Aleksandr Razumov
6f411f0187
all: fix linter warnings
2017-02-04 22:20:35 +03:00
Aleksandr Razumov
2843383a6b
all: major refactor
2017-02-04 22:11:11 +03:00
Aleksandr Razumov
2d0e6be7eb
attributes, stun: refactor
2017-02-01 09:19:43 +03:00
Aleksandr Razumov
7a54ae7a7a
all: reduce dependencides and be more idiomatic
2017-02-01 04:39:23 +03:00
Aleksandr Razumov
d018302e0e
attributes: add ORIGIN for WebRTC
2017-01-24 17:04:25 +03:00
Aleksandr Razumov
74ce84071f
attributes: fix XOR-MAPPED-ADDRESS
2017-01-15 12:23:01 -08:00
ernado
b2b5a203cd
all: nicer var and const comments
2017-01-14 03:50:11 +03:00
ernado
31cf89d533
attributes: add Attribute.IsBlank method
2017-01-14 03:46:46 +03:00
ernado
c9c8c234fc
attributes: fix gocyclo warning
2017-01-14 03:33:31 +03:00
Aleksandr Razumov
593d01bc3a
all: init TURN and ICE
2016-05-16 20:56:43 +03:00
Aleksandr Razumov
a7c6a6b516
attr: fix #11 getAttrValue
2016-05-12 20:19:59 +03:00
Aleksandr Razumov
535395da3e
stun: refactor attributes stuff
2016-05-12 18:42:02 +03:00
Aleksandr Razumov
96775e7dfa
attr: remove check to eliminate memory allocation
2016-05-08 13:39:55 +03:00
Aleksandr Razumov
6905ed655c
attr: add default error reasons
2016-05-08 01:14:18 +03:00
Aleksandr Razumov
9360068657
attr: implement ERROR-CODE ( fix #7 )
2016-05-07 15:46:02 +03:00
Aleksandr Razumov
28cca0add3
all: improve coverage
2016-04-28 22:42:34 +03:00
ernado
af04e909a1
stun: fix slice bounds out of range error
2016-04-28 15:40:24 +03:00
ernado
b164c7d2c8
all: fix linters
2016-04-28 14:52:48 +03:00
Aleksandr Razumov
bf2972d501
all: implement XOR MAPPED ADDRESS
2016-04-27 22:01:47 +03:00
Aleksandr Razumov
1e0292ce75
attr: initial
2016-04-27 18:11:46 +03:00