File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ class LDAP
1616  end 
1717end 
1818require  'socket' 
19+ require  'socksify' 
1920
2021require  'net/ber' 
2122require  'net/ldap/pdu' 
Original file line number Diff line number Diff line change @@ -710,7 +710,16 @@ def socket
710710  # Wrap around Socket.tcp to normalize with other Socket initializers 
711711  class  DefaultSocket 
712712    def  self . new ( host ,  port ,  socket_opts  =  { } ) 
713-       Socket . tcp ( host ,  port ,  socket_opts ) 
713+       if  ENV [ "QUOTAGUARDSTATIC_URL" ]  != nil 
714+         # puts 'quotaguard url is present' 
715+         socks  =  URI . parse ( ENV [ "QUOTAGUARDSTATIC_URL" ] . to_s ) 
716+         puts  socks 
717+         # http://dl2bwsbvp46amx:[email protected] :9293  718+         # Scoket.tcp() 
719+       else 
720+         puts  'quotaguard url is NOT present' 
721+         Socket . tcp ( host ,  port ,  socket_opts ) 
722+       end 
714723    end 
715724  end 
716725end  # class Connection 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments