mirror of
				https://github.com/yggdrasil-network/yggdrasil-go.git
				synced 2025-11-04 11:15:07 +03:00 
			
		
		
		
	Stick with tcp://localhost:9001 as default for now
This commit is contained in:
		
							parent
							
								
									1692bd98fd
								
							
						
					
					
						commit
						36c89da848
					
				
					 6 changed files with 6 additions and 6 deletions
				
			
		| 
						 | 
					@ -3,7 +3,7 @@ package config
 | 
				
			||||||
// NodeConfig defines all configuration values needed to run a signle yggdrasil node
 | 
					// NodeConfig defines all configuration values needed to run a signle yggdrasil node
 | 
				
			||||||
type NodeConfig struct {
 | 
					type NodeConfig struct {
 | 
				
			||||||
	Listen                      string   `comment:"Listen address for peer connections. Default is to listen for all\nTCP connections over IPv4 and IPv6 with a random port."`
 | 
						Listen                      string   `comment:"Listen address for peer connections. Default is to listen for all\nTCP connections over IPv4 and IPv6 with a random port."`
 | 
				
			||||||
	AdminListen                 string   `comment:"Listen address for admin connections Default is to listen for local\nconnections only on TCP port 9001."`
 | 
						AdminListen                 string   `comment:"Listen address for admin connections Default is to listen for local\nconnections either on TCP/9001 or a UNIX socket depending on your\nplatform. Use this value for yggdrasilctl -endpoint=X."`
 | 
				
			||||||
	Peers                       []string `comment:"List of connection strings for static peers in URI format, i.e.\ntcp://a.b.c.d:e or socks://a.b.c.d:e/f.g.h.i:j"`
 | 
						Peers                       []string `comment:"List of connection strings for static peers in URI format, i.e.\ntcp://a.b.c.d:e or socks://a.b.c.d:e/f.g.h.i:j"`
 | 
				
			||||||
	AllowedEncryptionPublicKeys []string `comment:"List of peer encryption public keys to allow or incoming TCP\nconnections from. If left empty/undefined then all connections\nwill be allowed by default."`
 | 
						AllowedEncryptionPublicKeys []string `comment:"List of peer encryption public keys to allow or incoming TCP\nconnections from. If left empty/undefined then all connections\nwill be allowed by default."`
 | 
				
			||||||
	EncryptionPublicKey         string   `comment:"Your public encryption key. Your peers may ask you for this to put\ninto their AllowedEncryptionPublicKeys configuration."`
 | 
						EncryptionPublicKey         string   `comment:"Your public encryption key. Your peers may ask you for this to put\ninto their AllowedEncryptionPublicKeys configuration."`
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -7,7 +7,7 @@ package defaults
 | 
				
			||||||
func GetDefaults() platformDefaultParameters {
 | 
					func GetDefaults() platformDefaultParameters {
 | 
				
			||||||
	return platformDefaultParameters{
 | 
						return platformDefaultParameters{
 | 
				
			||||||
    // Admin
 | 
					    // Admin
 | 
				
			||||||
		DefaultAdminListen: "unix:///var/run/yggdrasil.sock",
 | 
							DefaultAdminListen: "tcp://localhost:9001",
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    // TUN/TAP
 | 
					    // TUN/TAP
 | 
				
			||||||
    MaximumIfMTU:     65535,
 | 
					    MaximumIfMTU:     65535,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -7,7 +7,7 @@ package defaults
 | 
				
			||||||
func GetDefaults() platformDefaultParameters {
 | 
					func GetDefaults() platformDefaultParameters {
 | 
				
			||||||
	return platformDefaultParameters{
 | 
						return platformDefaultParameters{
 | 
				
			||||||
		// Admin
 | 
							// Admin
 | 
				
			||||||
		DefaultAdminListen: "unix:///var/run/yggdrasil.sock",
 | 
							DefaultAdminListen: "tcp://localhost:9001",
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		// TUN/TAP
 | 
							// TUN/TAP
 | 
				
			||||||
		MaximumIfMTU:     32767,
 | 
							MaximumIfMTU:     32767,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -7,7 +7,7 @@ package defaults
 | 
				
			||||||
func GetDefaults() platformDefaultParameters {
 | 
					func GetDefaults() platformDefaultParameters {
 | 
				
			||||||
	return platformDefaultParameters{
 | 
						return platformDefaultParameters{
 | 
				
			||||||
    // Admin
 | 
					    // Admin
 | 
				
			||||||
		DefaultAdminListen: "unix:///var/run/yggdrasil.sock",
 | 
							DefaultAdminListen: "tcp://localhost:9001",
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    // TUN/TAP
 | 
					    // TUN/TAP
 | 
				
			||||||
    MaximumIfMTU:     65535,
 | 
					    MaximumIfMTU:     65535,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -7,7 +7,7 @@ package defaults
 | 
				
			||||||
func GetDefaults() platformDefaultParameters {
 | 
					func GetDefaults() platformDefaultParameters {
 | 
				
			||||||
	return platformDefaultParameters{
 | 
						return platformDefaultParameters{
 | 
				
			||||||
		// Admin
 | 
							// Admin
 | 
				
			||||||
		DefaultAdminListen: "unix:///var/run/yggdrasil.sock",
 | 
							DefaultAdminListen: "tcp://localhost:9001",
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		// TUN/TAP
 | 
							// TUN/TAP
 | 
				
			||||||
		MaximumIfMTU:     9000,
 | 
							MaximumIfMTU:     9000,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -7,7 +7,7 @@ package defaults
 | 
				
			||||||
func GetDefaults() platformDefaultParameters {
 | 
					func GetDefaults() platformDefaultParameters {
 | 
				
			||||||
	return platformDefaultParameters{
 | 
						return platformDefaultParameters{
 | 
				
			||||||
		// Admin
 | 
							// Admin
 | 
				
			||||||
		DefaultAdminListen: "unix:///var/run/yggdrasil.sock",
 | 
							DefaultAdminListen: "tcp://localhost:9001",
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		// TUN/TAP
 | 
							// TUN/TAP
 | 
				
			||||||
		MaximumIfMTU:     16384,
 | 
							MaximumIfMTU:     16384,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue