Files
livekit/pkg/service/export_test.go
T
Pradeep SharmaandClaude Opus 5.5 57be11f93d ingress: bound URL pull host lookup and block more special-purpose ranges
Resolve URL pull hosts through a resolver held by IngressService, with a
5 second timeout. Reject documentation, IETF protocol assignment,
discard-only, local-use NAT64 and Teredo addresses. Document that the
check runs only when the ingress is created.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 10:56:03 -08:00

25 lines
782 B
Go

// Copyright 2026 LiveKit, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package service
import (
"context"
"net/netip"
)
func (s *IngressService) SetLookupNetIP(fn func(ctx context.Context, network, host string) ([]netip.Addr, error)) {
s.lookupNetIP = fn
}