Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
garrynewman committed Dec 31, 2019
1 parent 89d4ec5 commit ec34e5f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion UI/Director.cs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ async Task<bool> Connect( Utility.Sddp.DeviceResponse connection )
UpdateDirectorInfo();
return true;
}
catch ( System.Exception e )
catch ( System.Exception )
{
return false;
}
Expand Down
2 changes: 1 addition & 1 deletion Utility/Sddp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public void Search( string target )
public void SendMessage( string message )
{
var bytes = Encoding.UTF8.GetBytes( message );
var hostByName = Dns.GetHostByName( Dns.GetHostName() );
var hostByName = Dns.GetHostEntry( Dns.GetHostName() );
var addressList = hostByName.AddressList;
var remoteEP = new IPEndPoint( IPAddress.Parse( "239.255.255.250" ), 1900 );
var array = addressList;
Expand Down

0 comments on commit ec34e5f

Please sign in to comment.