mirror of https://github.com/dswd/vpncloud.git
Not broadcasting to additional addresses
This commit is contained in:
parent
1da38f5205
commit
5e7d3b5e08
|
@ -238,8 +238,8 @@ impl<P: Protocol> GenericCloud<P> {
|
|||
debug!("Broadcasting {:?}", msg);
|
||||
// Encrypt and encode once and send several times
|
||||
let msg_data = encode(msg, &mut self.buffer_out, self.magic, &mut self.crypto);
|
||||
for addr in self.peers.as_vec() {
|
||||
let socket = match addr {
|
||||
for addr in self.peers.peers.keys() {
|
||||
let socket = match *addr {
|
||||
SocketAddr::V4(_) => &self.socket4,
|
||||
SocketAddr::V6(_) => &self.socket6
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue