mirror of
				https://github.com/go-gitea/gitea
				synced 2025-11-04 05:18:25 +00:00 
			
		
		
		
	fix ssh domain default value to domain (#930)
This commit is contained in:
		@@ -96,7 +96,7 @@ var (
 | 
				
			|||||||
	}{
 | 
						}{
 | 
				
			||||||
		Disabled:           false,
 | 
							Disabled:           false,
 | 
				
			||||||
		StartBuiltinServer: false,
 | 
							StartBuiltinServer: false,
 | 
				
			||||||
		Domain:             "localhost",
 | 
							Domain:             "",
 | 
				
			||||||
		Port:               22,
 | 
							Port:               22,
 | 
				
			||||||
		KeygenPath:         "ssh-keygen",
 | 
							KeygenPath:         "ssh-keygen",
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
@@ -623,6 +623,9 @@ please consider changing to GITEA_CUSTOM`)
 | 
				
			|||||||
		LandingPageURL = LandingPageHome
 | 
							LandingPageURL = LandingPageHome
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if len(SSH.Domain) == 0 {
 | 
				
			||||||
 | 
							SSH.Domain = Domain
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
	SSH.RootPath = path.Join(homeDir, ".ssh")
 | 
						SSH.RootPath = path.Join(homeDir, ".ssh")
 | 
				
			||||||
	SSH.KeyTestPath = os.TempDir()
 | 
						SSH.KeyTestPath = os.TempDir()
 | 
				
			||||||
	if err = Cfg.Section("server").MapTo(&SSH); err != nil {
 | 
						if err = Cfg.Section("server").MapTo(&SSH); err != nil {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user