mirror of https://github.com/apache/jclouds.git
opened port 8080
git-svn-id: http://jclouds.googlecode.com/svn/trunk@2565 3d8758e0-26b5-11de-8745-db77d3ebf521
This commit is contained in:
parent
bdbb6d0ec9
commit
edc6ccc503
|
@ -145,7 +145,7 @@ public class MainApp {
|
|||
static void createSecurityGroupAndAuthorizePorts(EC2Client client, String name) {
|
||||
System.out.printf("%d: creating security group: %s%n", System.currentTimeMillis(), name);
|
||||
client.getSecurityGroupServices().createSecurityGroupInRegion(Region.DEFAULT, name, name);
|
||||
for (int port : new int[] { 80, 443, 22 }) {
|
||||
for (int port : new int[] { 80, 8080, 443, 22 }) {
|
||||
client.getSecurityGroupServices().authorizeSecurityGroupIngressInRegion(Region.DEFAULT,
|
||||
name, IpProtocol.TCP, port, port, "0.0.0.0/0");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue