diff --git a/_build/bin/container_network b/_build/bin/container_network index 6ac10bd..ac1c522 100755 Binary files a/_build/bin/container_network and b/_build/bin/container_network differ diff --git a/_build/bin/network.logging.json b/_build/bin/network.logging.json index e78242f..4cd4069 100644 --- a/_build/bin/network.logging.json +++ b/_build/bin/network.logging.json @@ -22,6 +22,6 @@ "callerEncoder": "full", "nameEncoder": "full" }, - "outputPaths": ["/project/go/src/git.loafle.net/overflow/probe/_build/logs/container_network.log"], + "outputPaths": ["/home/geek/go/src/git.loafle.net/overflow/probe/_build/logs/container_network.log"], "errorOutputPaths": ["stderr"] } diff --git a/_build/config/container/network/1 b/_build/config/container/network/1 index 4e83e46..5d0c304 100644 Binary files a/_build/config/container/network/1 and b/_build/config/container/network/1 differ diff --git a/service/SensorConfigService.go b/service/SensorConfigService.go index 17bf1f0..c13e522 100644 --- a/service/SensorConfigService.go +++ b/service/SensorConfigService.go @@ -226,7 +226,7 @@ func (s *SensorConfigService) loadConfigFile(configStrByte []byte) (*ocmsc.Senso //keyStr := s.ProbeClientService.EncryptionKey //configStrByte := []byte(decodeStr) - keyStr := "aaaaaaaa" + keyStr := "f84ld984" key := []byte(keyStr) block, err := des.NewCipher(key) diff --git a/service/SensorService_test.go b/service/SensorService_test.go index 31f45f2..3a85801 100644 --- a/service/SensorService_test.go +++ b/service/SensorService_test.go @@ -6,11 +6,12 @@ import ( ) func TestSensorService_AddSensor(t *testing.T) { - config := "pT1QAThXECRfY+Vqe0PpaDrI5TlJ+Psf0AyM5JWiHlHHEr0oZsq8z5L01BnXV4LDHtMXGB0wDb2+L+4SDxk/zM57b7dGHt76ibmZ/R6jPXF8EZYgORbNcyy+m60sesk8fK23unH4Wc1Gqf5ekxTyYjupQ6ZSQbmdFk/WJM3iYy20G8JN3gsHHZtWVCDRVzhQU8sAg+UQ4voSlN3hWajAN8sZFL0HDSba7CjDX3rp9Z7K7VoZCkBsti9b7Z/WhFjHV23zoO786ZhKc8M8lYa69eCgcDDX4zYGJ5RUHnzLFwYkZ6GAoVX0NM8nCA8+yk59CbEcWS1qjR9Xv2C32PuZq8oWOhVW1xiXQDBD1hhAv+3c+m4gZmpHZQ==" + config := "3gX2rkyrn+R//wqs2IU+kqnWCfBkdik1gsAZHYvGYkXEaL1pivcyxNfzSVbUPW41+P5VrSM2+HQfcmTNXiO2V1bUm+cuzJ+iZvLjOodb5Hdji8isNCwy4WJ4aa8SD18qNCKvJFwrvNkEvhkRy9SNbJ2zw2zyiOSvweHauI03HYBEEvAIy6JBdMSrb6yzFJcWa1BUvkWTOqei+8blivC84tw0OAils1fUUbfRaRDNCrVVNJDqVhqa9ZUUbQ8ziNV5Qb0FeSEflqH1PzXSZ9OPV8LipC7Fdp6SLmGiPWXR/EhuSH9JeFkOPJuVH4+z3zyXthTo4hyafLjMGEhm0J0csh78zRk3pCG6LRt3llLW0cGHgwoIAQaAA4jR0R64/k12D4zB+O/iwTcPeW1mPN5myg==" s := &SensorService{} sc := &SensorConfigService{} sc.InitService() + s.SensorConfigService = sc err := s.AddSensor(config) if nil != err {