Joiner desktop windows (#89)

* base classes/logic from a playground

* fix sandbox

* add vk support
This commit is contained in:
kulikov0 authored and GitHub committed 2026-05-11 17:01:32 +02:00
1 parent 1308361eb6
commit 30ed29a161
34 files changed
+7056

No files matched your search

+35
View File
@@ -0,0 +1,35 @@
//go:build !windows
package wintunnel
import (
"errors"
"net"
)
var errUnsupported = errors.New("wintunnel: only supported on windows")
type Config struct {
AdapterName string
TunnelIP string
TunnelMask string
TunnelPeer string
MTU int
DNSServers []string
SocksHost string
SocksPort int
SocksUser string
SocksPass string
LogFn func(format string, args ...any)
}
type Tunnel struct{}
func New(_ Config) (*Tunnel, error) { return nil, errUnsupported }
func (*Tunnel) Start() error { return errUnsupported }
func (*Tunnel) Stop() {}
func (*Tunnel) AddBypassIP(_ net.IP) error { return errUnsupported }
func (*Tunnel) AddBypassHost(_ string) ([]net.IP, error) {
return nil, errUnsupported
}
func (*Tunnel) AddBypassFromCandidate(_ string) error { return errUnsupported }