You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2024/05/15 19:34:47 "level"=0 "msg"="resuming connection..." "reconnectCount"=0
2024/05/15 19:34:50 "msg"="could not negotiate" "error"="ICEAgent does not exist: unable to restart ICETransport"
2024/05/15 19:34:50 "msg"="resume connection failed" "error"="ICEAgent does not exist: unable to restart ICETransport"
2024/05/15 19:34:50 "level"=0 "msg"="resuming connection..." "reconnectCount"=1
2024/05/15 19:34:58 "msg"="could not negotiate" "error"="ICEAgent does not exist: unable to restart ICETransport"
2024/05/15 19:34:58 "msg"="resume connection failed" "error"="ICEAgent does not exist: unable to restart ICETransport"
2024/05/15 19:34:58 "level"=0 "msg"="resuming connection..." "reconnectCount"=2
2024/05/15 19:35:06 "msg"="could not negotiate" "error"="ICEAgent does not exist: unable to restart ICETransport"
2024/05/15 19:35:06 "msg"="resume connection failed" "error"="ICEAgent does not exist: unable to restart ICETransport"
2024/05/15 19:35:07 "level"=0 "msg"="resuming connection..." "reconnectCount"=3
2024/05/15 19:35:14 "msg"="could not negotiate" "error"="ICEAgent does not exist: unable to restart ICETransport"
2024/05/15 19:35:14 "msg"="resume connection failed" "error"="ICEAgent does not exist: unable to restart ICETransport"
2024/05/15 19:35:17 "level"=0 "msg"="resuming connection..." "reconnectCount"=4
2024/05/15 19:35:22 "msg"="could not negotiate" "error"="ICEAgent does not exist: unable to restart ICETransport"
2024/05/15 19:35:22 "msg"="resume connection failed" "error"="ICEAgent does not exist: unable to restart ICETransport"
2024/05/15 19:35:26 "level"=0 "msg"="resuming connection..." "reconnectCount"=5
2024/05/15 19:35:29 "msg"="could not negotiate" "error"="ICEAgent does not exist: unable to restart ICETransport"
2024/05/15 19:35:29 "msg"="resume connection failed" "error"="ICEAgent does not exist: unable to restart ICETransport"
2024/05/15 19:35:37 "level"=0 "msg"="resuming connection..." "reconnectCount"=6
2024/05/15 19:35:37 "msg"="could not negotiate" "error"="ICEAgent does not exist: unable to restart ICETransport"
2024/05/15 19:35:37 "msg"="resume connection failed" "error"="ICEAgent does not exist: unable to restart ICETransport"
2024/05/15 19:35:48 "level"=0 "msg"="resuming connection..." "reconnectCount"=7
2024/05/15 19:35:48 "msg"="could not negotiate" "error"="ICEAgent does not exist: unable to restart ICETransport"
2024/05/15 19:35:48 "msg"="resume connection failed" "error"="ICEAgent does not exist: unable to restart ICETransport"
2024/05/15 19:36:03 "level"=0 "msg"="resuming connection..." "reconnectCount"=8
2024/05/15 19:36:03 "msg"="could not negotiate" "error"="ICEAgent does not exist: unable to restart ICETransport"
2024/05/15 19:36:03 "msg"="resume connection failed" "error"="ICEAgent does not exist: unable to restart ICETransport"
2024/05/15 19:36:22 "level"=0 "msg"="resuming connection..." "reconnectCount"=9
2024/05/15 19:36:22 "msg"="could not negotiate" "error"="ICEAgent does not exist: unable to restart ICETransport"
2024/05/15 19:36:22 "msg"="resume connection failed" "error"="ICEAgent does not exist: unable to restart ICETransport"
2024/05/15 19:34:47 "level"=0 "msg"="resuming connection..." "reconnectCount"=0
2024/05/15 19:34:50 "msg"="could not negotiate" "error"="ICEAgent does not exist: unable to restart ICETransport"
2024/05/15 19:34:50 "msg"="resume connection failed" "error"="ICEAgent does not exist: unable to restart ICETransport"
2024/05/15 19:34:50 "level"=0 "msg"="resuming connection..." "reconnectCount"=1
2024/05/15 19:34:58 "msg"="could not negotiate" "error"="ICEAgent does not exist: unable to restart ICETransport"
2024/05/15 19:34:58 "msg"="resume connection failed" "error"="ICEAgent does not exist: unable to restart ICETransport"
2024/05/15 19:34:58 "level"=0 "msg"="resuming connection..." "reconnectCount"=2
2024/05/15 19:35:06 "msg"="could not negotiate" "error"="ICEAgent does not exist: unable to restart ICETransport"
2024/05/15 19:35:06 "msg"="resume connection failed" "error"="ICEAgent does not exist: unable to restart ICETransport"
2024/05/15 19:35:07 "level"=0 "msg"="resuming connection..." "reconnectCount"=3
2024/05/15 19:35:14 "msg"="could not negotiate" "error"="ICEAgent does not exist: unable to restart ICETransport"
2024/05/15 19:35:14 "msg"="resume connection failed" "error"="ICEAgent does not exist: unable to restart ICETransport"
2024/05/15 19:35:17 "level"=0 "msg"="resuming connection..." "reconnectCount"=4
2024/05/15 19:35:22 "msg"="could not negotiate" "error"="ICEAgent does not exist: unable to restart ICETransport"
2024/05/15 19:35:22 "msg"="resume connection failed" "error"="ICEAgent does not exist: unable to restart ICETransport"
2024/05/15 19:35:26 "level"=0 "msg"="resuming connection..." "reconnectCount"=5
2024/05/15 19:35:29 "msg"="could not negotiate" "error"="ICEAgent does not exist: unable to restart ICETransport"
2024/05/15 19:35:29 "msg"="resume connection failed" "error"="ICEAgent does not exist: unable to restart ICETransport"
2024/05/15 19:35:37 "level"=0 "msg"="resuming connection..." "reconnectCount"=6
2024/05/15 19:35:37 "msg"="could not negotiate" "error"="ICEAgent does not exist: unable to restart ICETransport"
2024/05/15 19:35:37 "msg"="resume connection failed" "error"="ICEAgent does not exist: unable to restart ICETransport"
2024/05/15 19:35:48 "level"=0 "msg"="resuming connection..." "reconnectCount"=7
2024/05/15 19:35:48 "msg"="could not negotiate" "error"="ICEAgent does not exist: unable to restart ICETransport"
2024/05/15 19:35:48 "msg"="resume connection failed" "error"="ICEAgent does not exist: unable to restart ICETransport"
2024/05/15 19:36:03 "level"=0 "msg"="resuming connection..." "reconnectCount"=8
2024/05/15 19:36:03 "msg"="could not negotiate" "error"="ICEAgent does not exist: unable to restart ICETransport"
2024/05/15 19:36:03 "msg"="resume connection failed" "error"="ICEAgent does not exist: unable to restart ICETransport"
2024/05/15 19:36:22 "level"=0 "msg"="resuming connection..." "reconnectCount"=9
2024/05/15 19:36:22 "msg"="could not negotiate" "error"="ICEAgent does not exist: unable to restart ICETransport"
2024/05/15 19:36:22 "msg"="resume connection failed" "error"="ICEAgent does not exist: unable to restart ICETransport"
`package main
import (
"fmt"
"github.com/google/gopacket"
"github.com/google/gopacket/layers"
lksdk "github.com/livekit/server-sdk-go/v2"
"github.com/livekit/server-sdk-go/v2/common"
"github.com/pkg/errors"
"github.com/vishvananda/netlink"
"gopkg.in/yaml.v2"
"io"
"os"
"os/signal"
"strings"
"syscall"
)
var (
device io.ReadWriteCloser
topic string
cidr string
mtu int
dst string
identity string
tunName string
prefix string
)
type Config struct {
LiveKit struct {
Host string
yaml:"host"
APIKey string
yaml:"apiKey"
APISecret string
yaml:"apiSecret"
RoomName string
yaml:"roomName"
}
yaml:"livekit"
Participant struct {
Identity string
yaml:"identity"
TunName string
yaml:"tunName"
MTU int
yaml:"mtu"
CIDR string
yaml:"cidr"
Topic string
yaml:"topic"
Dst string
yaml:"dst"
}
yaml:"participant"
}
func main() {
}
func filterPacket(packet []byte, prefix string) ([]byte, error) {
var ip layers.IPv4
}
// 收到的包都写入网卡里面
func onDataPacket(data lksdk.DataPacket, params lksdk.DataReceiveParams) {
if data.ToProto().GetUser().GetTopic() == topic {
a := data.ToProto().GetUser().GetPayload()
if device == nil {
fmt.Println("TUN device not initialized")
return
}
}
type tunConfig struct {
InterfaceName string
InterfaceAddress string
InterfaceMTU int
}
func prepareInterface(c *tunConfig) error {
link, err := netlink.LinkByName(c.InterfaceName)
if err != nil {
return err
}
}
func getPrefix(cidr string) string {
}
`
livekit-server v1.6.1
docker run --rm
-p 7880:7880
-p 7881:7881
-p 7882:7882/udp
-v $PWD/livekit.yaml:/livekit.yaml
livekit/livekit-server
--config /livekit.yaml
--node-ip=xxxx
The text was updated successfully, but these errors were encountered: