Changeset 2276 for trunk/CrypP2P


Ignore:
Timestamp:
Dec 29, 2010, 1:20:14 PM (11 years ago)
Author:
kopal
Message:
  • created gui to request a certificate for p2p
  • fixed a small bug not checking the password/worldname fields correctly before connecting to p2p
Location:
trunk/CrypP2P
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypP2P/Internal/ConnectionManager.cs

    r2164 r2276  
    148148            }
    149149
    150             if (String.IsNullOrEmpty(P2PSettings.Default.PeerName))
     150            if (String.IsNullOrEmpty(P2PSettings.Default.Password))
     151            {
     152                P2PManager.GuiLogMessage("Peer-to-peer not fully configured: password missing.",
     153                                         NotificationLevel.Error);
     154                return false;
     155            }
     156
     157            if (String.IsNullOrEmpty(P2PSettings.Default.WorldName))
    151158            {
    152159                P2PManager.GuiLogMessage("Peer-to-peer not fully configured: world name missing.",
  • trunk/CrypP2P/Worker/ConnectionWorker.cs

    r1698 r2276  
    4848            {
    4949                P2PManager.GuiLogMessage("Connecting to P2P network...", NotificationLevel.Info);
    50 
    51                 // Validate certificats
    52                 if (!PAPCertificate.CheckAndInstallPAPCertificates())
    53                 {
    54                     P2PManager.GuiLogMessage("Certificates not validated, P2P might not be working!",
    55                                                       NotificationLevel.Error);
    56                     return;
    57                 }
    58 
    5950                p2PBase.Initialize();
    6051                p2PBase.SynchStart();
Note: See TracChangeset for help on using the changeset viewer.