mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-30 18:42:26 -05:00 
			
		
		
		
	[bugfix] update syslog tests to listen/connect specifically to ipv4 loopback (#561)
Signed-off-by: kim <grufwub@gmail.com>
This commit is contained in:
		
					parent
					
						
							
								898d256511
							
						
					
				
			
			
				commit
				
					
						9f2a2abe42
					
				
			
		
					 2 changed files with 2 additions and 2 deletions
				
			
		|  | @ -47,7 +47,7 @@ func (suite *SyslogTestSuite) SetupTest() { | ||||||
| 
 | 
 | ||||||
| 	viper.Set(config.Keys.SyslogEnabled, true) | 	viper.Set(config.Keys.SyslogEnabled, true) | ||||||
| 	viper.Set(config.Keys.SyslogProtocol, "udp") | 	viper.Set(config.Keys.SyslogProtocol, "udp") | ||||||
| 	viper.Set(config.Keys.SyslogAddress, "localhost:42069") | 	viper.Set(config.Keys.SyslogAddress, "127.0.0.1:42069") | ||||||
| 	server, channel, err := testrig.InitTestSyslog() | 	server, channel, err := testrig.InitTestSyslog() | ||||||
| 	if err != nil { | 	if err != nil { | ||||||
| 		panic(err) | 		panic(err) | ||||||
|  |  | ||||||
|  | @ -43,7 +43,7 @@ func InitTestSyslog() (*syslog.Server, chan format.LogParts, error) { | ||||||
| 	server.SetFormat(syslog.Automatic) | 	server.SetFormat(syslog.Automatic) | ||||||
| 	server.SetHandler(handler) | 	server.SetHandler(handler) | ||||||
| 
 | 
 | ||||||
| 	if err := server.ListenUDP("localhost:42069"); err != nil { | 	if err := server.ListenUDP("127.0.0.1:42069"); err != nil { | ||||||
| 		return nil, nil, err | 		return nil, nil, err | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue