2
2
// Authors:
3
3
// Alan McGovern alan.mcgovern@gmail.com
4
4
// Ben Motmans <ben.motmans@gmail.com>
5
- // Lucas Ontivero lucasontivero@gmail.com
5
+ // Lucas Ontivero lucasontivero@gmail.com
6
6
//
7
7
// Copyright (C) 2006 Alan McGovern
8
8
// Copyright (C) 2007 Ben Motmans
15
15
// distribute, sublicense, and/or sell copies of the Software, and to
16
16
// permit persons to whom the Software is furnished to do so, subject to
17
17
// the following conditions:
18
- //
18
+ //
19
19
// The above copyright notice and this permission notice shall be
20
20
// included in all copies or substantial portions of the Software.
21
- //
21
+ //
22
22
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
23
23
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
24
24
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
@@ -233,7 +233,7 @@ public override async Task DeletePortMapAsync(Mapping mapping)
233
233
Guard . IsNotNull ( mapping , "mapping" ) ;
234
234
235
235
if ( mapping . PrivateIP . Equals ( IPAddress . None ) ) mapping . PrivateIP = DeviceInfo . LocalAddress ;
236
-
236
+
237
237
NatDiscoverer . TraceSource . LogInfo ( "DeletePortMapAsync - Deleteing port mapping {0}" , mapping ) ;
238
238
239
239
try
@@ -246,7 +246,7 @@ await _soapClient
246
246
}
247
247
catch ( MappingException e )
248
248
{
249
- if ( e . ErrorCode != UpnpConstants . NoSuchEntryInArray ) throw ;
249
+ if ( e . ErrorCode != UpnpConstants . NoSuchEntryInArray ) throw ;
250
250
}
251
251
}
252
252
#endif
@@ -370,7 +370,7 @@ public override async Task<IEnumerable<Mapping>> GetAllMappingsAsync()
370
370
|| e . ErrorCode == UpnpConstants . ActionFailed )
371
371
{
372
372
NatDiscoverer . TraceSource . LogWarn ( "Router failed with {0}-{1}. No more mappings is assumed." , e . ErrorCode , e . ErrorText ) ;
373
- break ;
373
+ break ;
374
374
}
375
375
throw ;
376
376
}
@@ -412,7 +412,7 @@ public override Task<Mapping> GetSpecificMappingAsync(Protocol protocol, int pub
412
412
MappingException e = task . Exception . InnerException as MappingException ;
413
413
if ( e != null && e . ErrorCode == UpnpConstants . NoSuchEntryInArray ) return null ;
414
414
415
- // DD-WRT Linux base router (and others probably) fails with 402-InvalidArgument
415
+ // DD-WRT Linux base router (and others probably) fails with 402-InvalidArgument
416
416
// when no mapping is found in the mappings table
417
417
if ( e != null && e . ErrorCode == UpnpConstants . InvalidArguments )
418
418
{
0 commit comments