-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
128cc27
commit 48a37da
Showing
5 changed files
with
92 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php | ||
|
||
namespace Pkerrigan\Xray; | ||
|
||
use Pkerrigan\Xray\Submission\DaemonSegmentSubmitter; | ||
|
||
/** | ||
* | ||
* @author Patrick Kerrigan (patrickkerrigan.uk) | ||
* @since 04/05/2024 | ||
*/ | ||
class HostnameDaemonSegmentSubmitterTest extends AbstractDaemonSegmentSubmitterTest | ||
{ | ||
|
||
protected function getServerAddress(): string | ||
{ | ||
return 'udp://[::1]:2000'; | ||
} | ||
|
||
protected function getSubmitter(): DaemonSegmentSubmitter | ||
{ | ||
return new DaemonSegmentSubmitter( | ||
'localhost', | ||
2000 | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php | ||
|
||
namespace Pkerrigan\Xray; | ||
|
||
use Pkerrigan\Xray\Submission\DaemonSegmentSubmitter; | ||
|
||
/** | ||
* | ||
* @author Patrick Kerrigan (patrickkerrigan.uk) | ||
* @since 04/05/2024 | ||
*/ | ||
class Ipv4DaemonSegmentSubmitterTest extends AbstractDaemonSegmentSubmitterTest | ||
{ | ||
|
||
protected function getServerAddress(): string | ||
{ | ||
return 'udp://127.0.0.1:2000'; | ||
} | ||
|
||
protected function getSubmitter(): DaemonSegmentSubmitter | ||
{ | ||
return new DaemonSegmentSubmitter( | ||
'127.0.0.1', | ||
2000 | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php | ||
|
||
namespace Pkerrigan\Xray; | ||
|
||
use Pkerrigan\Xray\Submission\DaemonSegmentSubmitter; | ||
|
||
/** | ||
* | ||
* @author Patrick Kerrigan (patrickkerrigan.uk) | ||
* @since 04/05/2024 | ||
*/ | ||
class Ipv6DaemonSegmentSubmitterTest extends AbstractDaemonSegmentSubmitterTest | ||
{ | ||
|
||
protected function getServerAddress(): string | ||
{ | ||
return 'udp://[::1]:2000'; | ||
} | ||
|
||
protected function getSubmitter(): DaemonSegmentSubmitter | ||
{ | ||
return new DaemonSegmentSubmitter( | ||
'::1', | ||
2000 | ||
); | ||
} | ||
} |