mirror of
				https://github.com/yggdrasil-network/yggdrasil-go.git
				synced 2025-11-04 03:05:07 +03:00 
			
		
		
		
	update to bugfixed ironwood, fix broken core test, add getPaths handler to admin socket
This commit is contained in:
		
							parent
							
								
									5e95246c26
								
							
						
					
					
						commit
						669e61af9a
					
				
					 4 changed files with 19 additions and 20 deletions
				
			
		| 
						 | 
				
			
			@ -145,22 +145,20 @@ func (a *AdminSocket) SetupAdminHandlers() {
 | 
			
		|||
			return res, nil
 | 
			
		||||
		},
 | 
			
		||||
	)
 | 
			
		||||
	/*
 | 
			
		||||
		_ = a.AddHandler(
 | 
			
		||||
			"getPaths", "Show established paths through this node", []string{},
 | 
			
		||||
			func(in json.RawMessage) (interface{}, error) {
 | 
			
		||||
				req := &GetPathsRequest{}
 | 
			
		||||
				res := &GetPathsResponse{}
 | 
			
		||||
				if err := json.Unmarshal(in, &req); err != nil {
 | 
			
		||||
					return nil, err
 | 
			
		||||
				}
 | 
			
		||||
				if err := a.getPathsHandler(req, res); err != nil {
 | 
			
		||||
					return nil, err
 | 
			
		||||
				}
 | 
			
		||||
				return res, nil
 | 
			
		||||
			},
 | 
			
		||||
		)
 | 
			
		||||
	*/
 | 
			
		||||
	_ = a.AddHandler(
 | 
			
		||||
		"getPaths", "Show established paths through this node", []string{},
 | 
			
		||||
		func(in json.RawMessage) (interface{}, error) {
 | 
			
		||||
			req := &GetPathsRequest{}
 | 
			
		||||
			res := &GetPathsResponse{}
 | 
			
		||||
			if err := json.Unmarshal(in, &req); err != nil {
 | 
			
		||||
				return nil, err
 | 
			
		||||
			}
 | 
			
		||||
			if err := a.getPathsHandler(req, res); err != nil {
 | 
			
		||||
				return nil, err
 | 
			
		||||
			}
 | 
			
		||||
			return res, nil
 | 
			
		||||
		},
 | 
			
		||||
	)
 | 
			
		||||
	_ = a.AddHandler(
 | 
			
		||||
		"getSessions", "Show established traffic sessions with remote nodes", []string{},
 | 
			
		||||
		func(in json.RawMessage) (interface{}, error) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue