mirror of
				https://github.com/yggdrasil-network/yggdrasil-go.git
				synced 2025-11-04 03:05:07 +03:00 
			
		
		
		
	Various API changes and simplifications to fix mobile builds
This commit is contained in:
		
							parent
							
								
									9b99f0b5e4
								
							
						
					
					
						commit
						de1005e4fa
					
				
					 13 changed files with 63 additions and 122 deletions
				
			
		| 
						 | 
				
			
			@ -60,7 +60,7 @@ func (a *AdminSocket) Init(c *yggdrasil.Core, state *config.NodeState, log *log.
 | 
			
		|||
	go func() {
 | 
			
		||||
		for {
 | 
			
		||||
			e := <-a.reconfigure
 | 
			
		||||
			current, previous := state.Get()
 | 
			
		||||
			current, previous := state.GetCurrent(), state.GetPrevious()
 | 
			
		||||
			if current.AdminListen != previous.AdminListen {
 | 
			
		||||
				a.listenaddr = current.AdminListen
 | 
			
		||||
				a.Stop()
 | 
			
		||||
| 
						 | 
				
			
			@ -69,7 +69,7 @@ func (a *AdminSocket) Init(c *yggdrasil.Core, state *config.NodeState, log *log.
 | 
			
		|||
			e <- nil
 | 
			
		||||
		}
 | 
			
		||||
	}()
 | 
			
		||||
	current, _ := state.Get()
 | 
			
		||||
	current := state.GetCurrent()
 | 
			
		||||
	a.listenaddr = current.AdminListen
 | 
			
		||||
	a.AddHandler("list", []string{}, func(in Info) (Info, error) {
 | 
			
		||||
		handlers := make(map[string]interface{})
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue