Merge pull request #44 from safing/feature/pre-alpha-finalizing

Pre alpha finalizing
This commit is contained in:
Patrick Pacher
2020-04-30 16:42:09 +02:00
committed by GitHub
33 changed files with 427 additions and 166 deletions

View File

@@ -163,8 +163,8 @@ func checkConnectionType(conn *network.Connection, _ packet.Packet) bool {
}
return true
}
case network.PeerLAN, network.PeerInternet, network.PeerInvalid:
// Important: PeerHost is and should be missing!
case network.PeerInternet:
// BlockP2P only applies to connections to the Internet
if p.BlockP2P() {
conn.Block("direct connections (P2P) blocked")
return true