Beispiel #1
0
        internal void IntroductionRelayOffered(IntroducerInfo intro)
        {
            if (!RouterContext.Inst.IsFirewalled)
            {
                if (CurrentIntroducers.Count() == 0)
                {
                    MyRouterContext.NoIntroducers();
                }
                return;
            }

            if (CurrentIntroducers.Count() >= 3)
            {
                return;
            }

            CurrentIntroducers.Set(intro.Host, intro);
            MyRouterContext.SetIntroducers(CurrentIntroducers.Select(i => i.Value));
        }
Beispiel #2
0
        internal void IntroductionRelayOffered(IntroducerInfo intro)
        {
            if (!RouterContext.Inst.IsFirewalled)
            {
                if (!CurrentIntroducers.Any())
                {
                    MyRouterContext.NoIntroducers();
                }
                return;
            }

            if (CurrentIntroducers.Count() >= 5)
            {
                return;
            }

            Logging.LogTransport($"SSU Introduction: Added introducer {intro.Host}, {intro.IntroKey}, {intro.IntroTag}, {intro.EndPoint}");
            CurrentIntroducers.Set(intro.Host, intro);
            MyRouterContext.SetIntroducers(CurrentIntroducers.Select(i => i.Value));
        }