some printing, should replace with logger
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				continuous-integration/drone/push Build is passing
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	continuous-integration/drone/push Build is passing
				
			This commit is contained in:
		@@ -136,21 +136,22 @@ class NetWrapper:
 | 
				
			|||||||
            return False
 | 
					            return False
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def initClientConnection(self, msg: bytes) -> bytes:
 | 
					    def initClientConnection(self, msg: bytes) -> bytes:
 | 
				
			||||||
        print('3')
 | 
					        print('A client is trying to connect')
 | 
				
			||||||
        try:
 | 
					        try:
 | 
				
			||||||
            print('4')
 | 
					            print('Server and Client identity verification started')
 | 
				
			||||||
            self.serverIdentify(msg)
 | 
					            self.serverIdentify(msg)
 | 
				
			||||||
            print('5')
 | 
					            print('Key exchange started')
 | 
				
			||||||
            self.keyExchange()
 | 
					            self.keyExchange()
 | 
				
			||||||
            print('6')
 | 
					            print('Authorization started')
 | 
				
			||||||
            success = self.login()
 | 
					            success = self.login()
 | 
				
			||||||
            print('7')
 | 
					            print(f'Authorization completed, success: {success}')
 | 
				
			||||||
            if success:
 | 
					            if success:
 | 
				
			||||||
                return "LINOK".encode('UTF-8')
 | 
					                return "LINOK".encode('UTF-8')
 | 
				
			||||||
            else:
 | 
					            else:
 | 
				
			||||||
                self.logout()
 | 
					                self.logout()
 | 
				
			||||||
                return "LINERROR".encode('UTF-8')
 | 
					                return "LINERROR".encode('UTF-8')
 | 
				
			||||||
        except Exception:
 | 
					        except Exception:
 | 
				
			||||||
 | 
					            print("Error ecountered, resetting")
 | 
				
			||||||
            self.logout()
 | 
					            self.logout()
 | 
				
			||||||
            return "LINERROR".encode('UTF-8')
 | 
					            return "LINERROR".encode('UTF-8')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user