File size: 588 Bytes
f0f4f2b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
syntax = "proto2";

package holepunch.pb;

message HolePunch {
  enum Type {
    CONNECT = 100;
    SYNC = 300;
  }

  required Type type=1;

  // For hole punching, we'll send some additional observed addresses to the remote peer
  // that could have been filtered by the Host address factory (for example: AutoRelay removes all public addresses if peer has private reachability).
  // This is a hack!
  // We plan to have a better address discovery and advertisement mechanism in the future.
  // See https://github.com/libp2p/go-libp2p-autonat/pull/98
  repeated bytes ObsAddrs = 2;
}