TangShanKaiPing
wanggang 6 years ago
parent 7bdc0f5452
commit f9f5a16f5d

@ -451,7 +451,7 @@ namespace Application.Services
message += mac;
}
var data = message.HexToBytes();
using (var client = new UdpClient(new IPEndPoint(Helper.Instance.GetLocalIP(), 0)))
using (var client = new UdpClient(new IPEndPoint(IPAddress.Broadcast, 0)))
{
client.Send(data, data.Length, new IPEndPoint(IPAddress.Parse("255.255.255.255"), 9));
}

@ -1,5 +0,0 @@
@for (int i = 0; i < 100; i++)
{
<a href="rtmp://192.254.1.67/live/b57e867ae29d11b483864cbd8fd0f747">Play @i</a>
<br />
}

@ -1,5 +1,5 @@
{
"version": "1.0.0-beta.103",
"version": "1.0.0-beta.104",
"Logging": {
"LogLevel": {
"Default": "Warning"

@ -71,7 +71,7 @@ namespace APService
public NotifyModel GetModel()
{
var host = string.IsNullOrEmpty(this._configuration["server.ip"]) ? Helper.Instance.GetLocalIP().ToString() : this._configuration["server.ip"];
var host = string.IsNullOrEmpty(this._configuration["server.ip"]) ? "localhost" : this._configuration["server.ip"];
var prot = Convert.ToInt32(Regex.Match(this._configuration["server.urls"], @"(?<=:)\d+").Value);
var sysinfo = this.RunCommand("sysinfo");
var timestamp = DateTimeOffset.UtcNow.ToUnixTimeMilliseconds();

@ -1,5 +1,5 @@
{
"version": "1.0.0-beta.103",
"version": "1.0.0-beta.104",
"Logging": {
"LogLevel": {
"Default": "Warning"

@ -394,7 +394,7 @@ namespace LiChuangService
private NotifyModel CreateModel(string name, string number, string path, string icon)
{
var host = string.IsNullOrEmpty(this._configuration["server.ip"]) ? Helper.Instance.GetLocalIP().ToString() : this._configuration["server.ip"];
var host = string.IsNullOrEmpty(this._configuration["server.ip"]) ? "localhost" : this._configuration["server.ip"];
var port = Convert.ToInt32(Regex.Match(this._configuration["server.urls"], @"(?<=:)\d+").Value);
return new NotifyModel

@ -1,5 +1,5 @@
{
"version": "1.0.0-beta.103",
"version": "1.0.0-beta.104",
"Logging": {
"LogLevel": {
"Default": "Information"

@ -11,7 +11,6 @@ namespace MediaService
{
public static void Main(string[] args)
{
var host = Helper.Instance.GetLocalIP().ToString();
WebHost.CreateDefaultBuilder(args)
.Run<Startup>(new List<EFConfigurationValue> {
new EFConfigurationValue { Id = "openapi.title", Value= "web api" },

@ -1,4 +1,4 @@
version=1.0.0-beta.103
version=1.0.0-beta.104
server.host=127.0.0.1
server.port=8003
spring.thymeleaf.cache=false

@ -144,7 +144,7 @@ namespace ONVIFService
public void Notify()
{
var host = Helper.Instance.GetLocalIP().ToString();
var host = string.IsNullOrEmpty(this._configuration["server.ip"]) ? "localhost" : this._configuration["server.ip"];
var prot = Convert.ToInt32(Regex.Match(this._configuration["server.urls"], @"(?<=:)\d+").Value);
using (var scope = _applicationServices.CreateScope())
{

@ -11,7 +11,7 @@ namespace ONVIFService
{
public static void Main(string[] args)
{
var host = Helper.Instance.GetLocalIP().ToString();
var host = "localhost";
WebHost.CreateDefaultBuilder(args)
.Run<Startup>(new List<EFConfigurationValue> {
new EFConfigurationValue { Id = "openapi.title", Value= "web api" },

@ -1,5 +1,5 @@
{
"version": "1.0.0-beta.103",
"version": "1.0.0-beta.104",
"Logging": {
"LogLevel": {
"Default": "Information"

@ -81,7 +81,7 @@ namespace SerialPortService
public void Notify()
{
var host = string.IsNullOrEmpty(this._configuration["server.ip"]) ? Helper.Instance.GetLocalIP().ToString() : this._configuration["server.ip"];
var host = string.IsNullOrEmpty(this._configuration["server.ip"]) ? "localhost" : this._configuration["server.ip"];
var prot = Convert.ToInt32(Regex.Match(this._configuration["server.urls"], @"(?<=:)\d+").Value);
try
{

@ -11,7 +11,6 @@ namespace SerialPortService
{
public static void Main(string[] args)
{
var host = Helper.Instance.GetLocalIP().ToString();
WebHost.CreateDefaultBuilder(args)
.Run<Startup>(new List<EFConfigurationValue> {
new EFConfigurationValue { Id = "openapi.title", Value= "web api" },
@ -22,7 +21,7 @@ namespace SerialPortService
new EFConfigurationValue { Id = "email:port", Value= "25"},
new EFConfigurationValue { Id = "email:user", Value= "admin@nbaxp.com"},
new EFConfigurationValue { Id = "email:password", Value= "aA123456"},
new EFConfigurationValue { Id = "server.ip", Value= "" },
new EFConfigurationValue { Id = "server.ip", Value= "" },
new EFConfigurationValue { Id = "server.urls", Value= "http://*:8007" },
new EFConfigurationValue { Id = "node.url", Value= "127.0.0.1:8002"},
new EFConfigurationValue { Id = "timer.seconds", Value="300"},

@ -1,5 +1,5 @@
{
"version": "1.0.0-beta.103",
"version": "1.0.0-beta.104",
"Logging": {
"LogLevel": {
"Default": "Information"

@ -64,7 +64,7 @@ namespace WinService
var list = Search("select CSName,Caption,FreePhysicalMemory from Win32_OperatingSystem");
var physicalMemory = double.Parse(Search("select Capacity from Win32_PhysicalMemory")["Capacity"].ToString());
var cpu = int.Parse((Search("select PercentIdleTime from Win32_PerfFormattedData_PerfOS_Processor where Name='_Total'")["PercentIdleTime"].ToString()));
var host = string.IsNullOrEmpty(this._configuration["server.ip"]) ? Helper.Instance.GetLocalIP().ToString() : this._configuration["server.ip"];
var host = string.IsNullOrEmpty(this._configuration["server.ip"]) ? "localhost" : this._configuration["server.ip"];
var prot = Convert.ToInt32(Regex.Match(this._configuration["server.urls"], @"(?<=:)\d+").Value);
var timestamp = DateTimeOffset.UtcNow.ToUnixTimeMilliseconds();
var model = new NotifyModel

@ -22,7 +22,7 @@ namespace WinService
new EFConfigurationValue { Id = "email:port", Value= "25"},
new EFConfigurationValue { Id = "email:user", Value= "admin@nbaxp.com"},
new EFConfigurationValue { Id = "email:password", Value= "aA123456"},
new EFConfigurationValue { Id = "node.url", Value= "192.254.1.2:8002"},
new EFConfigurationValue { Id = "node.url", Value= "192.168.3.2:8002"},
new EFConfigurationValue { Id = "timer.seconds", Value="5"},
//
new EFConfigurationValue { Id = "name", Value= "Windows主机服务"},

@ -1,5 +1,5 @@
{
"version": "1.0.0-beta.103",
"version": "1.0.0-beta.104",
"Logging": {
"LogLevel": {
"Default": "Warning"

@ -12,7 +12,7 @@ namespace IoTCenter
{
public static void Main(string[] args)
{
var host = Helper.Instance.GetLocalIP().ToString();
var host = "localhost";
WebHost.CreateDefaultBuilder(args)
.Run<Startup>(new List<EFConfigurationValue> {
new EFConfigurationValue { Id = "openapi.title", Value= "web api" },
@ -25,7 +25,7 @@ namespace IoTCenter
new EFConfigurationValue { Id = "usercenter:login", Value= $"http://{host}:8000/Account/Login"},
new EFConfigurationValue { Id = "usercenter:logout", Value= $"http://{host}:8000/Account/Logout"},
new EFConfigurationValue { Id = "usercenter:register", Value= $"http://{host}:8000/Account/Register"},
new EFConfigurationValue { Id = "influxdb:url", Value= "http://localhost:8086"},
new EFConfigurationValue { Id = "influxdb:url", Value= $"http://{host}:8086"},
new EFConfigurationValue { Id = "influxdb:usr", Value= "admin"},
new EFConfigurationValue { Id = "influxdb:pwd", Value= "admin"},
//

@ -1,5 +1,5 @@
{
"version": "1.0.0-beta.103",
"version": "1.0.0-beta.104",
"Logging": {
"LogLevel": {
"Default": "Warning"

@ -11,7 +11,7 @@ namespace StudyCenter
{
public static void Main(string[] args)
{
var host = Helper.Instance.GetLocalIP().ToString();
var host = "localhost";
WebHost.CreateDefaultBuilder(args)
.Run<Startup>(new List<EFConfigurationValue> {
new EFConfigurationValue { Id = "openapi.title", Value= "web api" },

@ -1,5 +1,5 @@
{
"version": "1.0.0-beta.103",
"version": "1.0.0-beta.104",
"Logging": {
"LogLevel": {
"Default": "Warning"

@ -160,7 +160,7 @@ namespace UserCenter
UserRoles = new List<UserRole> { new UserRole { Role = adminRole } }
});
dbContext.SaveChanges();
var host = Helper.Instance.GetLocalIP().ToString();
var host = "localhost";
dbContext.Set<Site>().Add(new Site
{
Name = "物联网平台",

@ -1,5 +1,5 @@
{
"version": "1.0.0-beta.103",
"version": "1.0.0-beta.104",
"Logging": {
"LogLevel": {
"Default": "Warning"

Loading…
Cancel
Save