725 Commits

Author SHA1 Message Date
Pion
89b9c27b5b Update CI configs to v0.11.36
Update lint scripts and CI configs.
2025-12-20 23:19:27 +02:00
Ali Sayyah
0c736dbf4e Fix gosec slice bounds warning
Replace range loop index access with direct value iteration
to address G602 gosec warning in gatherCandidatesRelay.
2025-12-20 23:12:56 +02:00
Joe Turki
2bd4cd80aa Update example to the new API 2025-12-20 22:14:14 +02:00
Joe Turki
37cc4c1855 Fix config api deprecation comments 2025-12-20 20:53:38 +02:00
philipch07
d594d8d173 Clean up parseAddr 2025-12-18 23:56:33 -05:00
Joe Turki
d82936b71f Refactor and test handleInbound 2025-12-19 04:22:01 +02:00
philipch07
a221984ebb Clean up getting candidate stats 2025-12-18 21:21:05 -05:00
Joe Turki
205bf933d4 Propagate and implement deadlines 2025-12-18 05:14:11 +02:00
Alessandro Toppi
c21e2f1d35 Use 1 microsecond tolerance for equality tests 2025-12-18 02:26:09 +02:00
Alessandro Toppi
e5a0d2a0b3 Make linter happy 2025-12-18 02:26:09 +02:00
Alessandro Toppi
945cf9fe3b Use a reference time for storing nanos 2025-12-18 02:26:09 +02:00
Alessandro Toppi
c9e85c7f1b Store lastSent and lastReceived as int64 2025-12-18 02:26:09 +02:00
Joe Turki
18ff63e944 Test relay gathering vnet 2025-12-13 21:26:04 +02:00
Joe Turki
a42e726bb3 Deprecate AgentConfig v4.1.0 2025-12-12 18:58:42 +02:00
Joe Turki
f808e10d45 Allow any port range 2025-12-12 18:55:37 +02:00
renovate[bot]
58ab74b167 Update module github.com/pion/dtls/v3 to v3.0.9
Generated by renovateBot
2025-12-11 15:22:34 -05:00
Joe Turki
030bb33178 Advertise only tcp-mux bind address 2025-12-09 16:28:50 +02:00
renovate[bot]
8d84083ff4 Update golang Docker tag to v1.25 (#847)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| golang | stage | minor | `1.22-bookworm` -> `1.25-bookworm` |

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/pion/ice).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0Mi4zMi4yIiwidXBkYXRlZEluVmVyIjoiNDIuMzIuMiIsInRhcmdldEJyYW5jaCI6Im1hc3RlciIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-09 04:00:04 +00:00
renovate[bot]
c29a72c590 Update module github.com/pion/stun/v3 to v3.0.2 (#844)
This PR contains the following updates:

| Package | Change |
[Age](https://docs.renovatebot.com/merge-confidence/) |
[Confidence](https://docs.renovatebot.com/merge-confidence/) |
|---|---|---|---|
| [github.com/pion/stun/v3](https://redirect.github.com/pion/stun) |
`v3.0.1` -> `v3.0.2` |
![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fpion%2fstun%2fv3/v3.0.2?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fpion%2fstun%2fv3/v3.0.1/v3.0.2?slim=true)
|

---

### Release Notes

<details>
<summary>pion/stun (github.com/pion/stun/v3)</summary>

###
[`v3.0.2`](https://redirect.github.com/pion/stun/releases/tag/v3.0.2)

[Compare
Source](https://redirect.github.com/pion/stun/compare/v3.0.1...v3.0.2)

#### Changelog

-
[`9b2d7bc`](9b2d7bcf7c)
Add AttrType.Known method
-
[`9bd9576`](9bd95766b3)
Update module github.com/pion/dtls/v3 to v3.0.8
([#&#8203;256](https://redirect.github.com/pion/stun/issues/256))
-
[`ef6bc84`](ef6bc8490e)
Update module github.com/pion/transport/v3 to v3.1.1
-
[`a8eac01`](a8eac015c3)
Update module github.com/pion/transport/v3 to v3.1.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/pion/ice).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0Mi4zMi4yIiwidXBkYXRlZEluVmVyIjoiNDIuMzIuMiIsInRhcmdldEJyYW5jaCI6Im1hc3RlciIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-08 23:32:33 +00:00
Joe Turki
fc739a1d5a Emit a disconnected state before failing 2025-12-08 18:16:22 +02:00
Joe Turki
ff7c443afe Return early if ctx is cancelled 2025-12-08 18:03:56 +02:00
Joe Turki
7ce2014eae Add AddressRewriter rules
A new API to replace the NAT 1:1
with clear replace/add, and interface, CIDR
level mapping
2025-12-08 18:03:45 +02:00
Raja Subramanian
e5b161b5eb Cancel gathering before removing candidates (#842)
#### Description

When ICE agent is closed, the connections from UDP/TCP mux were removed
before gathering was canceled. This led to candidate gathering adding
entries to UDP mux which were not cleaned up.

~Also passing into logger to the mux as ICE agent logger could have more
context and is useful to see the context.~
v4.0.13
2025-12-04 11:51:44 +05:30
renovate[bot]
a691585bce Update module github.com/pion/dtls/v3 to v3.0.8 (#843)
This PR contains the following updates:

| Package | Change |
[Age](https://docs.renovatebot.com/merge-confidence/) |
[Confidence](https://docs.renovatebot.com/merge-confidence/) |
|---|---|---|---|
| [github.com/pion/dtls/v3](https://redirect.github.com/pion/dtls) |
`v3.0.7` -> `v3.0.8` |
![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fpion%2fdtls%2fv3/v3.0.8?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fpion%2fdtls%2fv3/v3.0.7/v3.0.8?slim=true)
|

---

### Release Notes

<details>
<summary>pion/dtls (github.com/pion/dtls/v3)</summary>

###
[`v3.0.8`](https://redirect.github.com/pion/dtls/releases/tag/v3.0.8)

[Compare
Source](https://redirect.github.com/pion/dtls/compare/v3.0.7...v3.0.8)

#### Changelog

-
[`ffd97f5`](ffd97f5d98)
Backoff handshake retransmit
-
[`7ab1bc9`](7ab1bc9b2a)
Update actions/checkout action to v6
-
[`bdb5f23`](bdb5f23247)
Update module github.com/pion/transport/v3 to v3.1.1
([#&#8203;754](https://redirect.github.com/pion/dtls/issues/754))
-
[`1d9b6b1`](1d9b6b14c9)
Update module github.com/pion/transport/v3 to v3.1.0
-
[`c06c3a7`](c06c3a7624)
Lock while writing to encryptedPackets
-
[`ca7d80e`](ca7d80ec14)
Update CI configs to v0.11.32
-
[`9cfb13f`](9cfb13f244)
Improve the record layer fuzz tests
-
[`daa0fd4`](daa0fd4029)
Add fuzz tests for gcm
-
[`9ed5950`](9ed595078f)
Add fuzz tests for ccm
-
[`7b68bd9`](7b68bd95c2)
Add fuzz tests for packet buffer
-
[`7c62411`](7c62411d25)
Update CI configs to v0.11.31
-
[`3e12f76`](3e12f76523)
Add more tests for prf
-
[`e7cbd62`](e7cbd62208)
Migrate elliptic curves from elliptic to ecdh
-
[`6ff535f`](6ff535f1d5)
Update module github.com/pion/transport/v3 to v3.0.8
-
[`f6b0286`](f6b0286442)
Add the supported\_versions extension
-
[`120a895`](120a895e99)
Handle ECONNREFUSED timeout
-
[`ed044c0`](ed044c06ba)
Update CI configs to v0.11.29
-
[`5611b14`](5611b1401b)
Apply go modernize
-
[`27c3405`](27c3405035)
Update actions/checkout action to v5
-
[`8764fbd`](8764fbdc53)
Update CI configs to v0.11.26
-
[`465f544`](465f544ca3)
Update CI configs to v0.11.25
-
[`6e1e3c9`](6e1e3c9c6f)
Update module github.com/stretchr/testify to v1.11.1
-
[`495a7b5`](495a7b544a)
Update CI configs to v0.11.24
-
[`0b11eab`](0b11eabf43)
Update module github.com/stretchr/testify to v1.11.0
-
[`b8c2ab4`](b8c2ab4cdd)
Fix lint issues with golangci-lint\@&#8203;v2
-
[`0bf1902`](0bf19028b5)
Update CI configs to v0.11.22

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/pion/ice).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0Mi4zMi4yIiwidXBkYXRlZEluVmVyIjoiNDIuMzIuMiIsInRhcmdldEJyYW5jaCI6Im1hc3RlciIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-04 05:37:08 +00:00
Raja Subramanian
be9a6fac00 Set linger time for tcp connections (#841)
#### Description

It is possible that Close() of a TCP connection to block if there is
pending data to be written till it is written out. Set linger to ensure
that it does not block.
v4.0.12
2025-11-30 19:11:13 +05:30
Joe Turki
4537cf7b6c Fix a deadlock in TaskLoop v4.0.11 2025-11-26 20:14:52 +02:00
renovate[bot]
30c406b788 Update module github.com/pion/mdns/v2 to v2.1.0 (#839)
This PR contains the following updates:

| Package | Change | Age | Confidence |
|---|---|---|---|
| [github.com/pion/mdns/v2](https://redirect.github.com/pion/mdns) |
`v2.0.7` -> `v2.1.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fpion%2fmdns%2fv2/v2.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fpion%2fmdns%2fv2/v2.0.7/v2.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>pion/mdns (github.com/pion/mdns/v2)</summary>

###
[`v2.1.0`](https://redirect.github.com/pion/mdns/releases/tag/v2.1.0)

[Compare
Source](https://redirect.github.com/pion/mdns/compare/v2.0.7...v2.1.0)

#### Changelog

-
[`339008c`](339008c88b)
Include original question in answer
-
[`7a7184c`](7a7184ca19)
Update module github.com/pion/transport/v3 to v3.1.1
-
[`0d7076d`](0d7076d80f)
Update module github.com/pion/transport/v3 to v3.1.0
-
[`5c5a34b`](5c5a34ba09)
Improves the mDNS example
-
[`e2ff740`](e2ff740410)
Update CI configs to v0.11.32
-
[`c45b5d8`](c45b5d8562)
Update CI configs to v0.11.31
-
[`9aaae45`](9aaae4587c)
Update module github.com/pion/transport/v3 to v3.0.8
-
[`670d0e3`](670d0e3d35)
Make responder case-insensitive
-
[`3140ee3`](3140ee3114)
Remove redundant helper
-
[`0073f11`](0073f11b2d)
Fix the tests on windows
-
[`10b25cf`](10b25cfb7e)
Update CI configs to v0.11.29
-
[`664fb61`](664fb613c3)
Update CI configs to v0.11.26
-
[`7e7b5b2`](7e7b5b2cb9)
Update CI configs to v0.11.25
-
[`c2c9d84`](c2c9d84c3f)
Update CI configs to v0.11.24
-
[`fca3aa3`](fca3aa3666)
Update module github.com/stretchr/testify to v1.11.1
-
[`3978a11`](3978a11d3d)
Update module github.com/stretchr/testify to v1.11.0
-
[`886ce32`](886ce320ed)
Update CI configs to v0.11.22
-
[`cf04151`](cf04151665)
Fix lint issues with golangci\@&#8203;v2
-
[`7e6138b`](7e6138bb6d)
Update module github.com/pion/logging to v0.2.4
-
[`f868904`](f868904a6b)
Update CI configs to v0.11.20
-
[`dc95797`](dc957978c5)
Change: field close use any type
-
[`1a0d2a0`](1a0d2a03d7)
Update CI configs to v0.11.19
-
[`15d28dc`](15d28dc18f)
Update social media links, move to discord
-
[`915d351`](915d351fd0)
Stop skipping most IPv6 tests
-
[`41634ff`](41634ff635)
Update lint rules, use testify/assert
-
[`61c2740`](61c27404e5)
Fix typo in code: mutlicast -> multicast.
([#&#8203;219](https://redirect.github.com/pion/mdns/issues/219))
-
[`63f3b3e`](63f3b3ed41)
Update module golang.org/x/net to v0.35.0
([#&#8203;218](https://redirect.github.com/pion/mdns/issues/218))
-
[`85f3722`](85f3722dba)
Update module golang.org/x/net to v0.34.0
([#&#8203;216](https://redirect.github.com/pion/mdns/issues/216))
-
[`aa7d4d1`](aa7d4d14fd)
Upgrade golangci-lint, more linters
-
[`befed39`](befed39a6f)
Refactor addrFromAnswerHeader logic with a switch
-
[`3a20496`](3a20496bbf)
Update module github.com/pion/logging to v0.2.3
([#&#8203;213](https://redirect.github.com/pion/mdns/issues/213))
-
[`3e08ad8`](3e08ad84a3)
Update module golang.org/x/net to v0.33.0 \[SECURITY]
-
[`5d4f6b0`](5d4f6b0bc3)
Update module golang.org/x/net to v0.31.0
-
[`0722a4b`](0722a4bc64)
Update module golang.org/x/net to v0.30.0
-
[`979a9cd`](979a9cd303)
Update module golang.org/x/net to v0.29.0
-
[`016af17`](016af1761a)
Update module golang.org/x/net to v0.28.0
-
[`d914cca`](d914cca991)
Update go.mod version to 1.20
-
[`04dfc94`](04dfc94a10)
Update CI configs to v0.11.15
-
[`4ef2c3d`](4ef2c3d275)
Update module github.com/pion/transport/v3 to v3.0.7
-
[`1f2aef7`](1f2aef7d0b)
Update module golang.org/x/net to v0.27.0
-
[`8552261`](8552261ef9)
Update module github.com/pion/transport/v3 to v3.0.6
-
[`c7713c3`](c7713c326b)
Update module github.com/pion/transport/v3 to v3.0.5
-
[`45969d9`](45969d9a4f)
Update module github.com/pion/transport/v3 to v3.0.4
-
[`2d21d1d`](2d21d1de4e)
Update module golang.org/x/net to v0.26.0
-
[`cf2c72e`](cf2c72e12c)
Update module golang.org/x/net to v0.25.0
-
[`09b0c34`](09b0c343e9)
Update module golang.org/x/net to v0.24.0
-
[`34e3ffb`](34e3ffb938)
Update module golang.org/x/net to v0.23.0 \[SECURITY]
-
[`15fc147`](15fc14755e)
Update CI configs to v0.11.12
-
[`5d792ee`](5d792ee5c6)
Update CI configs to v0.11.7

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/pion/ice).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS4xNzMuMSIsInVwZGF0ZWRJblZlciI6IjQxLjE3My4xIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIiwibGFiZWxzIjpbXX0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-17 05:12:03 +00:00
renovate[bot]
32ca87a218 Update module github.com/pion/turn/v4 to v4.1.3 (#838)
This PR contains the following updates:

| Package | Change | Age | Confidence |
|---|---|---|---|
| [github.com/pion/turn/v4](https://redirect.github.com/pion/turn) |
`v4.1.2` -> `v4.1.3` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fpion%2fturn%2fv4/v4.1.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fpion%2fturn%2fv4/v4.1.2/v4.1.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>pion/turn (github.com/pion/turn/v4)</summary>

###
[`v4.1.3`](https://redirect.github.com/pion/turn/releases/tag/v4.1.3)

[Compare
Source](https://redirect.github.com/pion/turn/compare/v4.1.2...v4.1.3)

#### Changelog

-
[`d51bcdd`](d51bcdd3fc)
Handle stale nonces in ChannelBind
-
[`903cf17`](903cf17c82)
Update module github.com/pion/transport/v3 to v3.1.1
([#&#8203;484](https://redirect.github.com/pion/turn/issues/484))
-
[`9c45f27`](9c45f27221)
Update module github.com/pion/transport/v3 to v3.1.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/pion/ice).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS4xNzMuMSIsInVwZGF0ZWRJblZlciI6IjQxLjE3My4xIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIiwibGFiZWxzIjpbXX0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-14 18:14:25 +00:00
Joe Turki
43a7803ff3 Always close/cleanup on runners 2025-11-11 20:47:46 +02:00
Joe Turki
06dd6383d6 Skip link-local-ipv6 on macos 2025-11-11 20:19:36 +02:00
Pion
1901fa602a Update CI configs to v0.11.33
Update lint scripts and CI configs.
2025-11-11 19:49:47 +02:00
renovate[bot]
db55950324 Update module github.com/pion/transport/v3 to v3.1.1
Generated by renovateBot
2025-11-11 02:34:25 -05:00
Joe Turki
e1b445c641 Wire rest of the options 2025-11-09 06:49:48 +02:00
Joe Turki
65bb60dec1 Finish agent options 2025-11-09 05:53:03 +02:00
renovate[bot]
4c9f55e84f Update module github.com/pion/transport/v3 to v3.1.0
Generated by renovateBot
2025-11-08 12:42:45 -05:00
renovate[bot]
7336a27f8a Update module github.com/pion/turn/v4 to v4.1.2
Generated by renovateBot
2025-10-28 22:45:01 +00:00
Kevin Wang
f56f52ca84 Add automatic renomination 2025-10-26 16:50:09 -04:00
Kevin Wang
649e13aab5 Remove unnecessary comments in agent.go 2025-10-26 12:05:35 -04:00
Kevin Wang
d1491ba5ca Fix race condition in setSelectedPair 2025-10-26 12:05:35 -04:00
renovate[bot]
163dca56e4 Update module github.com/pion/stun/v3 to v3.0.1
Generated by renovateBot
2025-10-25 23:48:40 +03:00
Nils Ohlmeier
b5142e4d36 Deduplicated error messages for easier debugging 2025-10-20 16:09:52 -06:00
Pion
43dce03277 Update CI configs to v0.11.31
Update lint scripts and CI configs.
2025-10-11 16:47:58 -04:00
renovate[bot]
8217b53fa6 Update module github.com/pion/transport/v3 to v3.0.8
Generated by renovateBot
2025-10-11 19:42:35 +00:00
Kevin Wang
56839aaef5 Add support for continual gathering 2025-10-06 11:21:01 -04:00
Adeithe
ed14a44c7f Update default relay-only candidate wait 2025-10-05 11:48:49 +03:00
Joe Turki
3897c30941 Remove nolint, validate port 2025-09-22 18:05:29 +03:00
Joe Turki
ee3a2e4341 Fix the tests on Windows 2025-09-22 17:39:54 +03:00
Pion
92565e1979 Update CI configs to v0.11.29
Update lint scripts and CI configs.
2025-09-21 23:36:22 +00:00
philipch07
965031eb25 Add IceCandidatePairStats 2025-09-16 10:50:44 -04:00
philipch07
1ce9ff1d8d Apply go modernize 2025-09-14 18:20:22 -04:00