Compare commits

...

25 Commits

Author SHA1 Message Date
cefdf581cc Merge branch 'develop' into freebsd
All checks were successful
continuous-integration/drone/push Build is passing
2021-05-12 00:16:10 +01:00
711c025a48 Merge branch 'develop' into freebsd
All checks were successful
continuous-integration/drone/push Build is passing
2021-04-06 15:53:35 +01:00
62150d7669 Merge branch 'cleanexit' into freebsd
All checks were successful
continuous-integration/drone/push Build is passing
2021-03-31 18:45:47 +01:00
6364a61fed Merge branch 'cleanexit' into freebsd
All checks were successful
continuous-integration/drone/push Build is passing
2021-03-31 18:32:34 +01:00
da0d36fa0a Merge branch 'udp' into freebsd
All checks were successful
continuous-integration/drone/push Build is passing
2021-03-31 18:25:02 +01:00
823b787ab9 better handling of udp keepalives
All checks were successful
continuous-integration/drone/push Build is passing
2021-03-31 18:24:56 +01:00
44a6d2f9bd Merge branch 'develop' into freebsd
All checks were successful
continuous-integration/drone/push Build is passing
2021-03-31 18:20:24 +01:00
6f74e8199a Merge branch 'wgtun' into freebsd
All checks were successful
continuous-integration/drone/push Build is passing
2021-03-31 18:12:30 +01:00
4baa4d48d6 Merge branch 'cleanexit' into freebsd 2021-03-31 17:58:37 +01:00
765838ead8 Merge branch 'develop' into freebsd
All checks were successful
continuous-integration/drone/push Build is passing
2021-03-30 14:04:14 +01:00
5c2424f1c8 Merge branch 'wgtun' into freebsd
All checks were successful
continuous-integration/drone/push Build is passing
2021-03-28 19:50:27 +01:00
bf21e58d81 Merge branch 'develop' into freebsd
All checks were successful
continuous-integration/drone/push Build is passing
2021-03-27 17:28:32 +00:00
c94fba0f0a Merge branch 'develop' into freebsd
All checks were successful
continuous-integration/drone/push Build is passing
2021-03-27 13:13:17 +00:00
1c754e01b5 Merge branch 'daemonize' into freebsd
All checks were successful
continuous-integration/drone/push Build is passing
2021-03-26 21:18:00 +00:00
21c0e417cb Merge branch 'daemonize' into freebsd
All checks were successful
continuous-integration/drone/push Build is passing
2021-03-26 20:44:34 +00:00
2199d2b4ea formatting
Some checks failed
continuous-integration/drone/push Build is failing
2021-03-26 18:15:09 +00:00
e33c1742e9 implemented child process
Some checks failed
continuous-integration/drone/push Build is failing
2021-03-26 18:13:39 +00:00
2376ee24fd started daemonisation
Some checks failed
continuous-integration/drone/push Build is failing
2021-03-26 11:58:03 +00:00
186cc89fa0 Merge branch 'daemonize' into freebsd
All checks were successful
continuous-integration/drone/push Build is passing
2021-03-25 16:57:33 +00:00
dd5de5f41c Merge branch 'daemonize' into freebsd
All checks were successful
continuous-integration/drone/push Build is passing
2021-03-25 16:14:40 +00:00
9509f16a25 removed erroneous udp buffer setting
All checks were successful
continuous-integration/drone/push Build is passing
2021-03-23 20:35:22 +00:00
b8428d4643 Merge branch 'develop' into freebsd
All checks were successful
continuous-integration/drone/push Build is passing
2021-03-23 19:49:23 +00:00
a190f7adfd Merge branch 'develop' into freebsd
All checks were successful
continuous-integration/drone/push Build is passing
2021-03-22 21:31:58 +00:00
3afe055db0 unset tcp write buffers
All checks were successful
continuous-integration/drone/push Build is passing
2021-03-20 17:19:46 +00:00
1140d3fc52 default tun name
All checks were successful
continuous-integration/drone/push Build is passing
2021-03-20 17:07:06 +00:00
6 changed files with 9 additions and 15 deletions

View File

@ -0,0 +1,3 @@
package config
const DefaultTunName = "nc0"

5
config/defaults_other.go Normal file
View File

@ -0,0 +1,5 @@
// +build !freebsd
package config
const DefaultTunName = "nc%d"

View File

@ -112,10 +112,6 @@ func (f *InitiatedFlow) Reconnect(ctx context.Context) error {
return err
}
if err := conn.SetWriteBuffer(0); err != nil {
return err
}
f.conn = conn
f.isAlive = true

View File

@ -25,10 +25,6 @@ func NewListener(ctx context.Context, p *proxy.Proxy, local string, v func() pro
panic(err)
}
if err := conn.SetWriteBuffer(0); err != nil {
panic(err)
}
f := NewFlowConn(ctx, conn)
log.Printf("received new tcp connection: %v\n", f)

View File

@ -239,8 +239,7 @@ func (f *Flow) produceInternal(ctx context.Context, v proxy.MacVerifier, mustRet
// adjust congestion control based on this packet's congestion header
f.congestion.ReceivedPacket(p.seq, p.nack, p.ack)
// 12 bytes for header + the MAC + a timestamp
if len(b) == 12+f.v.CodeLength()+8 {
if len(p.Contents()) == 0 {
log.Println("handled keepalive/ack only packet")
continue
}

View File

@ -38,11 +38,6 @@ func NewListener(ctx context.Context, p *proxy.Proxy, local string, v func() pro
return err
}
err = pconn.SetWriteBuffer(0)
if err != nil {
panic(err)
}
receivedConnections := make(map[ComparableUdpAddress]*Flow)
go func() {