• Adin Schmahmann's avatar
    Enable switching DHT between client and server modes (#469) · d4134a46
    Adin Schmahmann authored
    * created Mode(ModeOpt) option for choosing between auto/client/server modes
    * Auto mode internally switches the DHT between client and server modes based on the EvtLocalReachabilityChanged event emitted on the event bus (e.g. by AutoNAT)
    * routing table management of peers that switch between client and server mode while we are connected to them (i.e. are in auto mode)
    * removed Client(bool) option, becoming a DHT client is specified using Mode(ModeClient) instead
    d4134a46
options.go 7.63 KB